Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.weaving

public abstract Class AbstractStaticWeaveOutputHandler

extends Object
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.internal.jpa.weaving.StaticWeaveDirectoryOutputHandler, org.eclipse.persistence.internal.jpa.weaving.StaticWeaveJAROutputHandler
Imports
java.io.IOException, .InputStream, .OutputStream, java.net.URISyntaxException, java.util.jar.JarEntry, .JarOutputStream

The abstract class provides a set of methods to out outputs into the sepcified archive file.

Field Summary

Modifier and TypeField and Description
protected JarOutputStream

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
addDirEntry(String dirPath)

create directory into target directory, or insert directory entry into outputstream.

public abstract void
addEntry(JarEntry targetEntry, byte[] entryBytes)

Write entry bytes into target, this is usually called if class has been tranformed

public abstract void
addEntry(InputStream jis, JarEntry entry)

Write entry into target, this method usually copy original class into target.

public void
closeOutputStream()

Close the output stream.

public JarOutputStream
getOutputStream()

Get the ouput stream instance.

protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

outputStreamHolderback to summary
protected JarOutputStream outputStreamHolder

Constructor Detail

AbstractStaticWeaveOutputHandlerback to summary
public AbstractStaticWeaveOutputHandler()

Method Detail

addDirEntryback to summary
public abstract void addDirEntry(String dirPath) throws IOException

create directory into target directory, or insert directory entry into outputstream.

addEntryback to summary
public abstract void addEntry(JarEntry targetEntry, byte[] entryBytes) throws IOException

Write entry bytes into target, this is usually called if class has been tranformed

addEntryback to summary
public abstract void addEntry(InputStream jis, JarEntry entry) throws IOException, URISyntaxException

Write entry into target, this method usually copy original class into target.

closeOutputStreamback to summary
public void closeOutputStream() throws IOException

Close the output stream.

getOutputStreamback to summary
public JarOutputStream getOutputStream()

Get the ouput stream instance.

readwriteStreamsback to summary
protected void readwriteStreams(InputStream in, OutputStream out) throws IOException