org.eclipse.birt.core.archive.compound
Class ArchiveEntry

java.lang.Object
  extended by org.eclipse.birt.core.archive.compound.ArchiveEntry
Direct Known Subclasses:
ArchiveEntryAdapter, ArchiveEntryV3

public abstract class ArchiveEntry
extends java.lang.Object

the user must close the archive


Field Summary
protected  java.lang.String name
           
protected  RAOutputStream output
           
 
Constructor Summary
ArchiveEntry(java.lang.String name)
           
 
Method Summary
abstract  void close()
           
 void flush()
           
abstract  long getLength()
           
 java.lang.String getName()
           
abstract  int read(long pos, byte[] b, int off, int len)
           
 void refresh()
           
abstract  void setLength(long length)
           
protected  void setOutputStream(RAOutputStream output)
           
abstract  void write(long pos, byte[] b, int off, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

output

protected RAOutputStream output
Constructor Detail

ArchiveEntry

public ArchiveEntry(java.lang.String name)
Method Detail

getName

public java.lang.String getName()

setOutputStream

protected void setOutputStream(RAOutputStream output)

getLength

public abstract long getLength()
                        throws java.io.IOException
Throws:
java.io.IOException

setLength

public abstract void setLength(long length)
                        throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Throws:
java.io.IOException

refresh

public void refresh()
             throws java.io.IOException
Throws:
java.io.IOException

read

public abstract int read(long pos,
                         byte[] b,
                         int off,
                         int len)
                  throws java.io.IOException
Throws:
java.io.IOException

write

public abstract void write(long pos,
                           byte[] b,
                           int off,
                           int len)
                    throws java.io.IOException
Throws:
java.io.IOException

close

public abstract void close()
                    throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008 Actuate Corp. All rights reserved.