com.zipxap.vfs
Class VFSInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.zipxap.vfs.VFSInputStream
All Implemented Interfaces:
java.io.Closeable

public class VFSInputStream
extends java.io.InputStream

This class provides an InputStream for reading from a file in the VFS.

MilestoneWhoDate, Time
Initial VersionK PenroseJune 2009

** Note that this table is not intended as an exhaustive list of subtle changes. It is intended to list changes that break the compatibility of older code, or major enhancements/rewrites


Method Summary
 void close()
          This version of close() does very little since there is no resource associated with this input stream.
 byte[] getDataBytes()
           
static byte[] getDataBytes(java.io.InputStream is)
           
 int read()
          Read the next byte from the input stream.
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

read

public int read()
         throws java.io.IOException
Read the next byte from the input stream.

Specified by:
read in class java.io.InputStream
Returns:
The next byte from the input stream, else -1 if the end of the input stream has been reached.
Throws:
java.io.IOException

close

public void close()
This version of close() does very little since there is no resource associated with this input stream.

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream

getDataBytes

public byte[] getDataBytes()
Returns:
the contents of this InputStream as a byte[]

getDataBytes

public static byte[] getDataBytes(java.io.InputStream is)
Returns:
the contents of an InputStream as a byte[]