Class StaticWeaveJAROutputHandler
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler
-
- org.eclipse.persistence.internal.jpa.weaving.StaticWeaveJAROutputHandler
-
public class StaticWeaveJAROutputHandler extends AbstractStaticWeaveOutputHandler
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
Constructors Constructor Description StaticWeaveJAROutputHandler(java.util.jar.JarOutputStream outputStreamHolder)Construct an instance of StaticWeaveJAROutputHandler
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDirEntry(java.lang.String dirPath)Add directory entry into outputstream.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 called 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.IOExceptionAdd directory entry into outputstream.- 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 called 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
-
-