org.ejtools.archive
Interface Entry

All Known Subinterfaces:
Archive
All Known Implementing Classes:
JarArchive, JarEntry

public interface Entry

Interface that defines an archive entry.

Version:
$Revision: 1.2 $
Author:
Laurent Etiemble

Method Summary
 void accept(Reader visitor)
          Visitor Pattern method to accept a Reader visitor
 void accept(Writer visitor)
          Visitor Pattern method to accept a Writer visitor
 void addTo(Archive archive)
          Adds this entry to an archive
 byte[] getContent()
          Returns the content of this entry
 java.lang.String getURI()
          Return the absolute URI of this entry
 boolean isArchive()
          Is this entry an archive ?
 void setContent(byte[] content)
          Sets the content of this entry
 void setURI(java.lang.String uri)
          Sets the URI of this entry
 

Method Detail

accept

public void accept(Reader visitor)
Visitor Pattern method to accept a Reader visitor

Parameters:
visitor - The reader visitor

accept

public void accept(Writer visitor)
Visitor Pattern method to accept a Writer visitor

Parameters:
visitor - The writer visitor

addTo

public void addTo(Archive archive)
Adds this entry to an archive

Parameters:
archive - The archive to be added to

isArchive

public boolean isArchive()
Is this entry an archive ?

Returns:
True if this entry is an archive

getURI

public java.lang.String getURI()
Return the absolute URI of this entry

Returns:
The URI

setURI

public void setURI(java.lang.String uri)
Sets the URI of this entry

Parameters:
uri - The new URI

setContent

public void setContent(byte[] content)
Sets the content of this entry

Parameters:
content - The new content

getContent

public byte[] getContent()
Returns the content of this entry

Returns:
The content


Copyright © 2002-2003 EJTools Org.. All Rights Reserved.