Methods Summary |
---|
public abstract void | addDirEntry(java.lang.String dirPath)create directory into target directory, or insert directory entry into outputstream.
|
public abstract void | addEntry(java.util.jar.JarEntry targetEntry, byte[] entryBytes)Write entry bytes into target, this is usually called if class has been tranformed
|
public abstract void | addEntry(java.io.InputStream jis, java.util.jar.JarEntry entry)Write entry into target, this method usually copy original class into target.
|
public void | closeOutputStream()Close the output stream.
if(outputStreamHolder!=null){
outputStreamHolder.close();
}
|
public java.util.jar.JarOutputStream | getOutputStream()Get the ouput stream instance.
return this.outputStreamHolder;
|
protected void | readwriteStreams(java.io.InputStream in, java.io.OutputStream out)
int numRead;
byte[] buffer = new byte[8*1024];
while ((numRead = in.read(buffer,0,buffer.length)) != -1) {
out.write(buffer,0,numRead);
}
|