Class IOImpl

java.lang.Object
io.webfolder.cdp.command.IOImpl
All Implemented Interfaces:
IO

public class IOImpl
extends java.lang.Object
implements IO
  • Constructor Summary

    Constructors 
    Constructor Description
    IOImpl​(SessionInvocationHandler handler)  
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • close

      public void close​(java.lang.String handle)
      Description copied from interface: IO
      Close the stream, discard any temporary backing storage.
      Specified by:
      close in interface IO
      Parameters:
      handle - Handle of the stream to close.
    • read

      public ReadResult read​(java.lang.String handle, java.lang.Integer offset, java.lang.Integer size)
      Description copied from interface: IO
      Read a chunk of the stream
      Specified by:
      read in interface IO
      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

      public java.lang.String resolveBlob​(java.lang.String objectId)
      Description copied from interface: IO
      Return UUID of Blob object specified by a remote object id.
      Specified by:
      resolveBlob in interface IO
      Parameters:
      objectId - Object id of a Blob object wrapper.
      Returns:
      UUID of the specified Blob.
    • read

      public ReadResult read​(java.lang.String handle)
      Description copied from interface: IO
      Read a chunk of the stream
      Specified by:
      read in interface IO
      Parameters:
      handle - Handle of the stream to read.
      Returns:
      ReadResult