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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract 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
Write entry bytes into target, this is usually called if class has been tranformedvoid
Close the output stream.Get the ouput stream instance.protected void
readwriteStreams
(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:
IOException
URISyntaxException
-
closeOutputStream
Close the output stream.- Throws:
IOException
-
getOutputStream
Get the ouput stream instance. -
readwriteStreams
- Throws:
IOException
-