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