Class Blob
java.lang.Object
org.openstreetmap.josm.data.osm.pbf.Blob
A "Blob" of data from an OSM PBF file. It, in turn, contains additional data in PBF format, which may be compressed.
- Since:
- 18695
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe compression types for the blob -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private final Blob.CompressionTypeprivate final Integer -
Constructor Summary
ConstructorsConstructorDescriptionBlob(Integer rawSize, Blob.CompressionType compressionType, byte... bytes) Create a new blob -
Method Summary
-
Field Details
-
rawSize
-
compressionType
-
bytes
-
-
Constructor Details
-
Blob
public Blob(@Nullable Integer rawSize, @Nonnull Blob.CompressionType compressionType, @Nonnull byte... bytes) Create a new blob- Parameters:
rawSize- The blob sizecompressionType- The compression typebytes- The bytes of the blob
-
-
Method Details
-
rawSize
The raw size of the blob (after decompression)- Returns:
- The raw size
-
compressionType
The compression type of the blob- Returns:
- The compression type
-
bytes
The bytes that make up the blob data- Returns:
- The bytes
-
inputStream
Get the decompressed inputstream for this blob- Returns:
- The decompressed inputstream
- Throws:
IOException- if we don't support the compression type or the decompressor has issues, seeBZip2CompressorInputStream
-