Class StaticWeaveDirectoryOutputHandler
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler
-
- org.eclipse.persistence.internal.jpa.weaving.StaticWeaveDirectoryOutputHandler
-
public class StaticWeaveDirectoryOutputHandler extends AbstractStaticWeaveOutputHandler
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
Constructors Constructor Description StaticWeaveDirectoryOutputHandler(java.net.URL source, java.net.URL target)Construct an instance of StaticWeaveDirectoryOutputHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDirEntry(java.lang.String dirPath)create directory into target directory.voidaddEntry(java.io.InputStream jis, java.util.jar.JarEntry entry)Write entry into target, this method usually copy original class into target.voidaddEntry(java.util.jar.JarEntry targetEntry, byte[] entryBytes)Write entry bytes into target, this method is usually invoked if class has been tranformed-
Methods inherited from class org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler
closeOutputStream, getOutputStream, readwriteStreams
-
-
-
-
Method Detail
-
addDirEntry
public void addDirEntry(java.lang.String dirPath) throws java.io.IOExceptioncreate directory into target directory.- Specified by:
addDirEntryin classAbstractStaticWeaveOutputHandler- Parameters:
dirPath-- Throws:
java.io.IOException
-
addEntry
public void addEntry(java.util.jar.JarEntry targetEntry, byte[] entryBytes) throws java.io.IOExceptionWrite entry bytes into target, this method is usually invoked if class has been tranformed- Specified by:
addEntryin classAbstractStaticWeaveOutputHandler- Parameters:
targetEntry-entryBytes-- Throws:
java.io.IOException
-
addEntry
public void addEntry(java.io.InputStream jis, java.util.jar.JarEntry entry) throws java.io.IOException, java.net.URISyntaxExceptionWrite entry into target, this method usually copy original class into target.- Specified by:
addEntryin classAbstractStaticWeaveOutputHandler- Parameters:
jis-entry-- Throws:
java.io.IOExceptionjava.net.URISyntaxException
-
-