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 - IOExceptionpublic abstract void addEntry(JarEntry targetEntry, byte[] entryBytes) throws IOException
targetEntry - entryBytes - IOExceptionpublic abstract void addEntry(InputStream jis, JarEntry entry) throws IOException, URISyntaxException
jis - entry - IOExceptionURISyntaxExceptionpublic void closeOutputStream()
throws IOException
IOExceptionpublic JarOutputStream getOutputStream()
protected void readwriteStreams(InputStream in, OutputStream out) throws IOException
IOExceptionCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.