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

java.lang.Object
  extended by org.eclipse.birt.core.archive.compound.ArchiveEntry
      extended by org.eclipse.birt.core.archive.compound.ArchiveEntryAdapter

public class ArchiveEntryAdapter
extends ArchiveEntry


Field Summary
protected  ArchiveEntry entry
           
 
Fields inherited from class org.eclipse.birt.core.archive.compound.ArchiveEntry
name, output
 
Constructor Summary
ArchiveEntryAdapter(java.lang.String name, ArchiveEntry entry)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 class ArchiveEntry
Throws:
java.io.IOException

setLength

public void setLength(long length)
               throws java.io.IOException
Specified by:
setLength in class ArchiveEntry
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Overrides:
flush in class ArchiveEntry
Throws:
java.io.IOException

refresh

public void refresh()
             throws java.io.IOException
Overrides:
refresh in class ArchiveEntry
Throws:
java.io.IOException

read

public int read(long offset,
                byte[] b,
                int off,
                int size)
         throws java.io.IOException
Specified by:
read in class ArchiveEntry
Throws:
java.io.IOException

write

public void write(long offset,
                  byte[] b,
                  int off,
                  int size)
           throws java.io.IOException
Specified by:
write in class ArchiveEntry
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in class ArchiveEntry
Throws:
java.io.IOException

setOutputStream

protected void setOutputStream(RAOutputStream output)
Overrides:
setOutputStream in class ArchiveEntry


Copyright © 2008 Actuate Corp. All rights reserved.