Module org.eclipse.persistence.jpa
Class StaticWeaveDirectoryOutputHandler
java.lang.Object
org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler
org.eclipse.persistence.internal.jpa.weaving.StaticWeaveDirectoryOutputHandler
The class provides a set of methods to pack passed-in entries into the sepcified archive file.
the class handle directory output.
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler
outputStreamHolder -
Constructor Summary
ConstructorsConstructorDescriptionStaticWeaveDirectoryOutputHandler(URL source, URL target) Construct an instance of StaticWeaveDirectoryOutputHandler. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDirEntry(String dirPath) create directory into target directory.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 invoked if class has been tranformedMethods inherited from class org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler
closeOutputStream, getOutputStream, readwriteStreams
-
Constructor Details
-
StaticWeaveDirectoryOutputHandler
Construct an instance of StaticWeaveDirectoryOutputHandler.
-
-
Method Details
-
addDirEntry
create directory into target directory.- Specified by:
addDirEntryin classAbstractStaticWeaveOutputHandler- Throws:
IOException
-
addEntry
Write entry bytes into target, this method is usually invoked 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
-