Class ArchiveEntryAdapter
- java.lang.Object
-
- org.eclipse.birt.core.archive.compound.ArchiveEntry
-
- org.eclipse.birt.core.archive.compound.ArchiveEntryAdapter
-
public class ArchiveEntryAdapter extends ArchiveEntry
-
-
Field Summary
Fields Modifier and Type Field Description protected ArchiveEntry
entry
-
Fields inherited from class org.eclipse.birt.core.archive.compound.ArchiveEntry
name, output
-
-
Constructor Summary
Constructors Constructor Description ArchiveEntryAdapter(java.lang.String name, ArchiveEntry entry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
long
getLength()
int
read(long offset, byte[] b, int off, int size)
void
refresh()
void
setLength(long length)
protected void
setOutputStream(RAOutputStream output)
void
write(long offset, byte[] b, int off, int size)
-
Methods inherited from class org.eclipse.birt.core.archive.compound.ArchiveEntry
getName
-
-
-
-
Field Detail
-
entry
protected ArchiveEntry entry
-
-
Constructor Detail
-
ArchiveEntryAdapter
public ArchiveEntryAdapter(java.lang.String name, ArchiveEntry entry)
-
-
Method Detail
-
getLength
public long getLength() throws java.io.IOException
- Specified by:
getLength
in classArchiveEntry
- Throws:
java.io.IOException
-
setLength
public void setLength(long length) throws java.io.IOException
- Specified by:
setLength
in classArchiveEntry
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException
- Overrides:
flush
in classArchiveEntry
- Throws:
java.io.IOException
-
refresh
public void refresh() throws java.io.IOException
- Overrides:
refresh
in classArchiveEntry
- Throws:
java.io.IOException
-
read
public int read(long offset, byte[] b, int off, int size) throws java.io.IOException
- Specified by:
read
in classArchiveEntry
- Throws:
java.io.IOException
-
write
public void write(long offset, byte[] b, int off, int size) throws java.io.IOException
- Specified by:
write
in classArchiveEntry
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in classArchiveEntry
- Throws:
java.io.IOException
-
setOutputStream
protected void setOutputStream(RAOutputStream output)
- Overrides:
setOutputStream
in classArchiveEntry
-
-