Package com.graphhopper.reader.osm.pbf
Class PbfBlobResult
java.lang.Object
com.graphhopper.reader.osm.pbf.PbfBlobResult
Stores the results for a decoded Blob.
- Author:
- Brett Henderson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the entities decoded from the blob.boolean
Gets the complete flag.boolean
Gets the success flag.void
Stores a failure result for a blob decoding operation.void
storeSuccessResult
(List<ReaderElement> decodedEntities) Stores the results of a successful blob decoding operation.
-
Constructor Details
-
PbfBlobResult
public PbfBlobResult()Creates a new instance.
-
-
Method Details
-
storeSuccessResult
Stores the results of a successful blob decoding operation.- Parameters:
decodedEntities
- The entities from the blob.
-
storeFailureResult
Stores a failure result for a blob decoding operation. -
isComplete
public boolean isComplete()Gets the complete flag.- Returns:
- True if complete.
-
isSuccess
public boolean isSuccess()Gets the success flag. This is only valid after complete becomes true.- Returns:
- True if successful.
-
getException
-
getEntities
Gets the entities decoded from the blob. This is only valid after complete becomes true, and if success is true.- Returns:
- The list of decoded entities.
-