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
ConstructorDescriptionStaticWeaveDirectoryOutputHandler
(URL source, URL target) Construct an instance of StaticWeaveDirectoryOutputHandler. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDirEntry
(String dirPath) create directory into target directory.void
addEntry
(InputStream jis, JarEntry entry) Write entry into target, this method usually copy original class into target.void
Write 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:
addDirEntry
in classAbstractStaticWeaveOutputHandler
- Throws:
IOException
-
addEntry
Write entry bytes into target, this method is usually invoked if class has been tranformed- Specified by:
addEntry
in classAbstractStaticWeaveOutputHandler
- Throws:
IOException
-
addEntry
Write entry into target, this method usually copy original class into target.- Specified by:
addEntry
in classAbstractStaticWeaveOutputHandler
- Throws:
IOException
URISyntaxException
-