Module org.eclipse.persistence.jpa
Class StaticWeaveJAROutputHandler
java.lang.Object
org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler
org.eclipse.persistence.internal.jpa.weaving.StaticWeaveJAROutputHandler
The class provides a set of methods to pack passing in entries into the sepcified archive file.
the class JAR output.
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler
outputStreamHolder -
Constructor Summary
ConstructorsConstructorDescriptionStaticWeaveJAROutputHandler(JarOutputStream outputStreamHolder) Construct an instance of StaticWeaveJAROutputHandler -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDirEntry(String dirPath) Add directory entry into outputstream.voidaddEntry(InputStream jis, JarEntry entry) Write entry into target, this method usually copy original class into target.voidWrite entry bytes into target, this method is usually called if class has been tranformedMethods inherited from class org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler
closeOutputStream, getOutputStream, readwriteStreams
-
Constructor Details
-
StaticWeaveJAROutputHandler
Construct an instance of StaticWeaveJAROutputHandler
-
-
Method Details
-
addDirEntry
Add directory entry into outputstream.- Specified by:
addDirEntryin classAbstractStaticWeaveOutputHandler- Throws:
IOException
-
addEntry
Write entry bytes into target, this method is usually called if class has been tranformed- Specified by:
addEntryin classAbstractStaticWeaveOutputHandler- Throws:
IOException
-
addEntry
Write entry into target, this method usually copy original class into target.- Specified by:
addEntryin classAbstractStaticWeaveOutputHandler- Throws:
IOExceptionURISyntaxException
-