Interface IO

All Known Implementing Classes:
IOImpl

public interface IO
Input/Output operations for streams produced by DevTools
  • Method Summary

    Modifier and Type Method Description
    void close​(java.lang.String handle)
    Close the stream, discard any temporary backing storage.
    ReadResult read​(java.lang.String handle)
    Read a chunk of the stream
    ReadResult read​(java.lang.String handle, java.lang.Integer offset, java.lang.Integer size)
    Read a chunk of the stream
    java.lang.String resolveBlob​(java.lang.String objectId)
    Return UUID of Blob object specified by a remote object id.
  • Method Details

    • close

      void close​(java.lang.String handle)
      Close the stream, discard any temporary backing storage.
      Parameters:
      handle - Handle of the stream to close.
    • read

      ReadResult read​(java.lang.String handle, java.lang.Integer offset, java.lang.Integer size)
      Read a chunk of the stream
      Parameters:
      handle - Handle of the stream to read.
      offset - Seek to the specified offset before reading (if not specificed, proceed with offset following the last read). Some types of streams may only support sequential reads.
      size - Maximum number of bytes to read (left upon the agent discretion if not specified).
      Returns:
      ReadResult
    • resolveBlob

      java.lang.String resolveBlob​(java.lang.String objectId)
      Return UUID of Blob object specified by a remote object id.
      Parameters:
      objectId - Object id of a Blob object wrapper.
      Returns:
      UUID of the specified Blob.
    • read

      ReadResult read​(java.lang.String handle)
      Read a chunk of the stream
      Parameters:
      handle - Handle of the stream to read.
      Returns:
      ReadResult