Class AbstractRandomAccessStreamContent

    • Method Detail

      • getDataInputStream

        protected abstract java.io.DataInputStream getDataInputStream()
                                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • readByte

        public byte readByte()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readChar

        public char readChar()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readDouble

        public double readDouble()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readFloat

        public float readFloat()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readInt

        public int readInt()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • readUnsignedByte

        public int readUnsignedByte()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • readUnsignedShort

        public int readUnsignedShort()
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readLong

        public long readLong()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readShort

        public short readShort()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readBoolean

        public boolean readBoolean()
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • skipBytes

        public int skipBytes​(int n)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • readFully

        public void readFully​(byte[] b)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readFully

        public void readFully​(byte[] b,
                              int off,
                              int len)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • readUTF

        public java.lang.String readUTF()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Description copied from interface: RandomAccessContent
        Get the input stream.

        Notice: If you use RandomAccessContent.seek(long) you have to re-get the InputStream

        Returns:
        the InputStream.
        Throws:
        java.io.IOException - if an I/O error occurs.
      • setLength

        public void setLength​(long newLength)
                       throws java.io.IOException
        Description copied from interface: RandomAccessContent
        Sets the length of this content.

        If the the newLength argument is smaller than RandomAccessContent.length(), the content is truncated.

        If the the newLength argument is greater than RandomAccessContent.length(), the content grows with undefined data.

        Parameters:
        newLength - The desired content length
        Throws:
        java.io.IOException - If an I/O error occurs