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

public Class StaticWeaveDirectoryOutputHandler

extends AbstractStaticWeaveOutputHandler
Class Inheritance
Imports
java.io.File, .FileInputStream, .FileOutputStream, .IOException, .InputStream, java.net.URISyntaxException, .URL, java.util.jar.JarEntry, org.eclipse.persistence.internal.helper.Helper, org.eclipse.persistence.internal.localization.ToStringLocalization, org.eclipse.persistence.logging.AbstractSessionLog

The class provides a set of methods to pack passed-in entries into the sepcified archive file. the class handle directory output.

Field Summary

Modifier and TypeField and Description
private URL
private URL
Inherited from org.eclipse.persistence.internal.jpa.weaving.AbstractStaticWeaveOutputHandler:
outputStreamHolder

Constructor Summary

AccessConstructor and Description
public
StaticWeaveDirectoryOutputHandler(URL source, URL target)

Construct an instance of StaticWeaveDirectoryOutputHandler.

Method Summary

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

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

create directory into target directory.
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 invoked 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

Field Detail

sourceback to summary
private URL source
targetback to summary
private URL target

Constructor Detail

StaticWeaveDirectoryOutputHandlerback to summary
public StaticWeaveDirectoryOutputHandler(URL source, URL target)

Construct an instance of StaticWeaveDirectoryOutputHandler.

Method Detail

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

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

create directory into target directory.

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 invoked 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