Module org.eclipse.persistence.jpa
Class AbstractStaticWeaveOutputHandler
java.lang.Object
org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler
- Direct Known Subclasses:
StaticWeaveDirectoryOutputHandler,StaticWeaveJAROutputHandler
The abstract class provides a set of methods to out outputs into the sepcified archive file.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddDirEntry(String dirPath) create directory into target directory, or insert directory entry into outputstream.abstract voidaddEntry(InputStream jis, JarEntry entry) Write entry into target, this method usually copy original class into target.abstract voidWrite entry bytes into target, this is usually called if class has been tranformedvoidClose the output stream.Get the ouput stream instance.protected voidreadwriteStreams(InputStream in, OutputStream out)
-
Field Details
-
outputStreamHolder
-
-
Constructor Details
-
AbstractStaticWeaveOutputHandler
public AbstractStaticWeaveOutputHandler()
-
-
Method Details
-
addDirEntry
create directory into target directory, or insert directory entry into outputstream.- Throws:
IOException
-
addEntry
Write entry bytes into target, this is usually called if class has been tranformed- Throws:
IOException
-
addEntry
public abstract void addEntry(InputStream jis, JarEntry entry) throws IOException, URISyntaxException Write entry into target, this method usually copy original class into target.- Throws:
IOExceptionURISyntaxException
-
closeOutputStream
Close the output stream.- Throws:
IOException
-
getOutputStream
Get the ouput stream instance. -
readwriteStreams
- Throws:
IOException
-