Class ReadResult


  • public class ReadResult
    extends Object
    Class to hold the read results from the native code call. The class has a setter method that will be called from the native method to avoid object creation.
    • Field Detail

      • INVALID_UPLOAD_HANDLE_VALUE

        public static final long INVALID_UPLOAD_HANDLE_VALUE
        Invalid upload handle value which is specified in the native codebase.
        See Also:
        Constant Field Values
      • ZERO_FRAGMENT_TIMECODE

        public static final long ZERO_FRAGMENT_TIMECODE
        See Also:
        Constant Field Values
    • Constructor Detail

      • ReadResult

        public ReadResult()
    • Method Detail

      • setReadResult

        @CalledByNativeCode
        public void setReadResult​(int readBytes,
                                  boolean isEndOfStream)
        Setter method which is called from the native codebase.
        Parameters:
        readBytes - Read bytes
        isEndOfStream - Whether its the end of stream
      • getReadBytes

        public int getReadBytes()
      • isEndOfStream

        public boolean isEndOfStream()