org.jclarion.clarion.util
Class SharedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.jclarion.clarion.util.SharedInputStream
All Implemented Interfaces:
java.io.Closeable

public class SharedInputStream
extends java.io.InputStream


Constructor Summary
SharedInputStream(byte[] source)
           
SharedInputStream(byte[] source, int pos, int size)
           
SharedInputStream(byte[] source, int pos, int size, int suggSize)
           
 
Method Summary
 int available()
           
 void close()
           
 byte[] getBytes()
           
 int getSize()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SharedInputStream

public SharedInputStream(byte[] source)

SharedInputStream

public SharedInputStream(byte[] source,
                         int pos,
                         int size)

SharedInputStream

public SharedInputStream(byte[] source,
                         int pos,
                         int size,
                         int suggSize)
Method Detail

close

public void close()
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream

getSize

public int getSize()

getBytes

public byte[] getBytes()

read

public int read()
Specified by:
read in class java.io.InputStream

available

public int available()
Overrides:
available in class java.io.InputStream

mark

public void mark(int readlimit)
Overrides:
mark in class java.io.InputStream

markSupported

public boolean markSupported()
Overrides:
markSupported in class java.io.InputStream

read

public int read(byte[] b)
Overrides:
read in class java.io.InputStream

read

public int read(byte[] b,
                int off,
                int len)
Overrides:
read in class java.io.InputStream

reset

public void reset()
Overrides:
reset in class java.io.InputStream

skip

public long skip(long n)
Overrides:
skip in class java.io.InputStream


Copyright © 2010. All Rights Reserved.