org.sourcejammer.server.source
Class SourceInputStream

java.lang.Object
  |
  +--org.sourcejammer.server.source.SourceInputStream
All Implemented Interfaces:
java.io.Serializable

public class SourceInputStream
extends java.lang.Object
implements java.io.Serializable

This class is essentially a wrapper around ByteArrayInputStream with reduced functionality.

See Also:
Serialized Form

Field Summary
private  int miStreamType
           
private  java.io.InputStreamReader moReader
           
private  java.io.InputStream moStream
           
 
Constructor Summary
SourceInputStream(byte[] buf)
           
SourceInputStream(byte[] buf, int offset, int length)
           
SourceInputStream(java.io.InputStream stm)
           
 
Method Summary
 void close()
           
 java.io.InputStream getStream()
           
 int read()
           
 void setStreamType(int i)
           
 long skip(long n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

moStream

private java.io.InputStream moStream

miStreamType

private int miStreamType

moReader

private java.io.InputStreamReader moReader
Constructor Detail

SourceInputStream

public SourceInputStream(byte[] buf)

SourceInputStream

public SourceInputStream(java.io.InputStream stm)

SourceInputStream

public SourceInputStream(byte[] buf,
                         int offset,
                         int length)
Method Detail

setStreamType

public void setStreamType(int i)
                   throws org.sourcejammer.util.BadMethodArgumentException
org.sourcejammer.util.BadMethodArgumentException

read

public int read()
         throws java.io.IOException
java.io.IOException

skip

public long skip(long n)
          throws java.io.IOException
java.io.IOException

getStream

public java.io.InputStream getStream()

close

public void close()
           throws java.io.IOException
java.io.IOException


Copyright 2003 Soucejammer project.