Milyn-Smooks Version 0.4

org.milyn.cdr.cdrar
Class CDRArchiveEntry

java.lang.Object
  extended byorg.milyn.cdr.cdrar.CDRArchiveEntry

public final class CDRArchiveEntry
extends java.lang.Object

Content Delivery Resource Archive entry.

This class stores the cdrar JarEntry plus the entry data associated with a JarEntry.

Author:
tfennelly

Constructor Summary
CDRArchiveEntry(java.util.jar.JarEntry jarEntry, byte[] entryBytes)
          Public constructor.
CDRArchiveEntry(java.lang.String name, byte[] entryBytes)
          Public constructor.
 
Method Summary
 byte[] getEntryBytes()
          Get the data bytes associated with the entry.
 java.util.jar.JarEntry getJarEntry()
          Get the JarEntry associated with the cdrar entry.
 java.lang.String getName()
          Get the JarEntry name of this CDRArchiveEntry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDRArchiveEntry

public CDRArchiveEntry(java.util.jar.JarEntry jarEntry,
                       byte[] entryBytes)
Public constructor.

Parameters:
jarEntry - The JarEntry associated with the cdrar entry.
entryBytes - The data bytes associated with the entry.

CDRArchiveEntry

public CDRArchiveEntry(java.lang.String name,
                       byte[] entryBytes)
Public constructor.

Parameters:
name - The name to be associated with the cdrar entry.
entryBytes - The data bytes associated with the entry.
Method Detail

getName

public java.lang.String getName()
Get the JarEntry name of this CDRArchiveEntry.

Returns:
The JarEntry name of of this CDRArchiveEntry.

getJarEntry

public java.util.jar.JarEntry getJarEntry()
Get the JarEntry associated with the cdrar entry.

Returns:
The JarEntry associated with the cdrar entry.

getEntryBytes

public byte[] getEntryBytes()
Get the data bytes associated with the entry.

Returns:
entryBytes The data bytes associated with the entry.

Milyn-Smooks Version 0.4