Package org.openstreetmap.josm.io
Class OsmPbfReader.BoundedInputStream
java.lang.Object
java.io.InputStream
org.openstreetmap.josm.io.OsmPbfReader.BoundedInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- OsmPbfReader
This could be replaced by
BoundedInputStream from Apache Commons IO.
However, Commons IO is not currently (2024-05-13) a required JOSM dependency, so we should avoid using it
for now. Commons IO is a transitive dependency, currently pulled in by org.apache.commons.compress
(see BoundedInputStream).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, read, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
source
-
count
-
mark
-
-
Constructor Details
-
BoundedInputStream
BoundedInputStream(InputStream source)
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
- Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
markSupported
- Overrides:
markSupportedin classInputStream
-
getCount
long getCount()
-