Class NativeOutputStream
java.lang.Object
java.io.OutputStream
org.apache.subversion.javahl.types.NativeOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class NativeOutputStream extends OutputStream
Implementation class for
OutputStream
objects returned from
JavaHL methods.- Since:
- 1.9
-
Method Summary
Modifier and Type Method Description void
close()
Flushes buffers, closes the underlying native stream, and releases the native object.void
finalize()
void
write(byte[] b, int off, int len)
Writeslen
bytes at offsetoff
fromb
to the underyling native stream.void
write(int b)
Writes a single byte to the underyling native stream.
-
Method Details
-
close
Flushes buffers, closes the underlying native stream, and releases the native object.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
write
Writes a single byte to the underyling native stream.- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
Writeslen
bytes at offsetoff
fromb
to the underyling native stream.- Overrides:
write
in classOutputStream
- Throws:
IOException
-
finalize
public void finalize()
-