Class NativeInputStream
java.lang.Object
java.io.InputStream
org.apache.subversion.javahl.types.NativeInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class NativeInputStream extends InputStream
Implementation class for
InputStream
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
mark(int readlimit)
boolean
markSupported()
int
read()
Reads a single byte from the underyling native stream.int
read(byte[] b, int off, int len)
Readslen
bytes to offsetoff
inb
from the underyling native stream.void
reset()
long
skip(long count)
Methods inherited from class java.io.InputStream
available, nullInputStream, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
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 classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
mark
public void mark(int readlimit)- Overrides:
mark
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
read
Reads a single byte from the underyling native stream.- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
Readslen
bytes to offsetoff
inb
from the underyling native stream.- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
finalize
public void finalize()
-