org.apache.subversion.javahl.types
Class NativeOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.subversion.javahl.types.NativeOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class NativeOutputStream
extends OutputStream

Implementation class for OutputStream 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 write(byte[] b, int off, int len)
          Writes len bytes at offset off from b to the underyling native stream.
 void write(int b)
          Writes a single byte to the underyling native stream.
 
Methods inherited from class java.io.OutputStream
flush, write
 
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 OutputStream
Throws:
IOException
See Also:
OutputStream.close()

write

public void write(int b)
           throws IOException
Writes a single byte to the underyling native stream.

Specified by:
write in class OutputStream
Throws:
IOException
See Also:
OutputStream.write(int)

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Writes len bytes at offset off from b to the underyling native stream.

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

finalize

public void finalize()
Overrides:
finalize in class Object