org.archive.wayback.liveweb
Class FileRegion

java.lang.Object
  extended by org.archive.wayback.liveweb.FileRegion

public class FileRegion
extends Object

Author:
brad

Constructor Summary
FileRegion()
           
 
Method Summary
 void copyToOutputStream(OutputStream o)
          Copy this record to the provided OutputStream
 long getLength()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileRegion

public FileRegion()
Method Detail

getLength

public long getLength()
Returns:
the number of bytes in this record, including headers. If the containing file is compressed, then this represents the number of compressed bytes.

copyToOutputStream

public void copyToOutputStream(OutputStream o)
                        throws IOException
Copy this record to the provided OutputStream

Parameters:
o - the OutputStream where the bytes should be sent.
Throws:
IOException - for usual reasons


Copyright © 2005-2011 Internet Archive. All Rights Reserved.