Class PbfBlobResult

java.lang.Object
com.graphhopper.reader.osm.pbf.PbfBlobResult

public class PbfBlobResult extends Object
Stores the results for a decoded Blob.

Author:
Brett Henderson
  • Constructor Details

    • PbfBlobResult

      public PbfBlobResult()
      Creates a new instance.
  • Method Details

    • storeSuccessResult

      public void storeSuccessResult(List<ReaderElement> decodedEntities)
      Stores the results of a successful blob decoding operation.

      Parameters:
      decodedEntities - The entities from the blob.
    • storeFailureResult

      public void storeFailureResult(Exception ex)
      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

      public Exception getException()
    • getEntities

      public List<ReaderElement> 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.