Class ArchiveEntry
- java.lang.Object
-
- org.eclipse.birt.core.archive.compound.ArchiveEntry
-
- Direct Known Subclasses:
ArchiveEntryAdapter,ArchiveEntryV3,FolderArchiveEntry
public abstract class ArchiveEntry extends java.lang.Objectthe user must close the archive
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringnameprotected RAOutputStreamoutput
-
Constructor Summary
Constructors Constructor Description ArchiveEntry(java.lang.String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidclose()voidflush()abstract longgetLength()java.lang.StringgetName()abstract intread(long pos, byte[] b, int off, int len)voidrefresh()abstract voidsetLength(long length)protected voidsetOutputStream(RAOutputStream output)abstract voidwrite(long pos, byte[] b, int off, int len)
-
-
-
Field Detail
-
name
protected java.lang.String name
-
output
protected RAOutputStream output
-
-
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
-
-