Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.weaving

public Class StaticWeaveJAROutputHandler

extends AbstractStaticWeaveOutputHandler
Class Inheritance
Imports
java.io.IOException, .InputStream, java.net.URISyntaxException, java.util.jar.JarEntry, .JarOutputStream

The class provides a set of methods to pack passing in entries into the sepcified archive file. the class JAR output.

Field Summary

Inherited from org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler:
outputStreamHolder

Constructor Summary

AccessConstructor and Description
public
StaticWeaveJAROutputHandler(JarOutputStream outputStreamHolder)

Construct an instance of StaticWeaveJAROutputHandler

Method Summary

Modifier and TypeMethod and Description
public void
addDirEntry(String dirPath)

Implements abstract org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler.addDirEntry.

Add directory entry into outputstream.
public void
addEntry(JarEntry targetEntry, byte[] entryBytes)

Implements abstract org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler.addEntry.

Write entry bytes into target, this method is usually called if class has been tranformed
public void
addEntry(InputStream jis, JarEntry entry)

Implements abstract org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler.addEntry.

Write entry into target, this method usually copy original class into target.
Inherited from org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler:
closeOutputStreamgetOutputStreamreadwriteStreams

Constructor Detail

StaticWeaveJAROutputHandlerback to summary
public StaticWeaveJAROutputHandler(JarOutputStream outputStreamHolder)

Construct an instance of StaticWeaveJAROutputHandler

Method Detail

addDirEntryback to summary
public void addDirEntry(String dirPath) throws IOException

Implements abstract org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler.addDirEntry.

Add directory entry into outputstream.

Annotations
@Override
addEntryback to summary
public void addEntry(JarEntry targetEntry, byte[] entryBytes) throws IOException

Implements abstract org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler.addEntry.

Write entry bytes into target, this method is usually called if class has been tranformed

Annotations
@Override
addEntryback to summary
public void addEntry(InputStream jis, JarEntry entry) throws IOException, URISyntaxException

Implements abstract org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler.addEntry.

Write entry into target, this method usually copy original class into target.

Annotations
@Override