Class OsmPbfReader.BoundedInputStream

java.lang.Object
java.io.InputStream
org.openstreetmap.josm.io.OsmPbfReader.BoundedInputStream
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
OsmPbfReader

private static final class OsmPbfReader.BoundedInputStream extends InputStream
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).