org.apache.subversion.javahl.types
Class NativeInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.subversion.javahl.types.NativeInputStream
All Implemented Interfaces:
Closeable

public class NativeInputStream
extends InputStream

Implementation class for InputStream objects returned from JavaHL methods.

Since:
1.9

Method Summary
 void close()
          Flushes buffers, closes the underlying native stream, and releases the native object.
 void finalize()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
          Reads a single byte from the underyling native stream.
 int read(byte[] b, int off, int len)
          Reads len bytes to offset off in b from the underyling native stream.
 void reset()
           
 long skip(long count)
           
 
Methods inherited from class java.io.InputStream
available, read
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

close

public void close()
           throws IOException
Flushes buffers, closes the underlying native stream, and releases the native object.

Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException
See Also:
InputStream.close()

markSupported

public boolean markSupported()
Overrides:
markSupported in class InputStream
See Also:
InputStream.markSupported()

mark

public void mark(int readlimit)
Overrides:
mark in class InputStream
See Also:
InputStream.mark(int)

reset

public void reset()
           throws IOException
Overrides:
reset in class InputStream
Throws:
IOException
See Also:
InputStream.reset()

read

public int read()
         throws IOException
Reads a single byte from the underyling native stream.

Specified by:
read in class InputStream
Throws:
IOException
See Also:
InputStream.read()

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Reads len bytes to offset off in b from the underyling native stream.

Overrides:
read in class InputStream
Throws:
IOException
See Also:
InputStream.read(byte[],int,int)

skip

public long skip(long count)
          throws IOException
Overrides:
skip in class InputStream
Throws:
IOException
See Also:
InputStream.skip(long)

finalize

public void finalize()
Overrides:
finalize in class Object