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 voidclose()Flushes buffers, closes the underlying native stream, and releases the native object.voidfinalize()voidmark(int readlimit)booleanmarkSupported()intread()Reads a single byte from the underyling native stream.intread(byte[] b, int off, int len)Readslenbytes to offsetoffinbfrom the underyling native stream.voidreset()longskip(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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
mark
public void mark(int readlimit)- Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
read
Reads a single byte from the underyling native stream.- Specified by:
readin classInputStream- Throws:
IOException
-
read
Readslenbytes to offsetoffinbfrom the underyling native stream.- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
finalize
public void finalize()
-