public abstract class AbstractStaticWeaveOutputHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected JarOutputStream |
outputStreamHolder |
Constructor and Description |
---|
AbstractStaticWeaveOutputHandler() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addDirEntry(String dirPath)
create directory into target directory, or insert directory entry into outputstream.
|
abstract void |
addEntry(InputStream jis,
JarEntry entry)
Write entry into target, this method usually copy original class into target.
|
abstract void |
addEntry(JarEntry targetEntry,
byte[] entryBytes)
Write entry bytes into target, this is usually called if class has been tranformed
|
void |
closeOutputStream()
Close the output stream.
|
JarOutputStream |
getOutputStream()
Get the ouput stream instance.
|
protected void |
readwriteStreams(InputStream in,
OutputStream out) |
protected JarOutputStream outputStreamHolder
public abstract void addDirEntry(String dirPath) throws IOException
dirPath
- IOException
public abstract void addEntry(JarEntry targetEntry, byte[] entryBytes) throws IOException
targetEntry
- entryBytes
- IOException
public abstract void addEntry(InputStream jis, JarEntry entry) throws IOException, URISyntaxException
jis
- entry
- IOException
URISyntaxException
public void closeOutputStream() throws IOException
IOException
public JarOutputStream getOutputStream()
protected void readwriteStreams(InputStream in, OutputStream out) throws IOException
IOException
Copyright © 2022. All rights reserved.