Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

RecordReadChannel (Google App Engine API for Java)

Stay organized with collections Save and categorize content based on your preferences.
com.google.appengine.api.files

Interface RecordReadChannel

    • Method Detail

      • readRecord

        java.nio.ByteBuffer readRecord()
                                throws java.io.IOException
        Deprecated. 
        Reads a record from the file and returns it in a ByteBuffer. This ByteBuffer is reused, so if the user would like to save the result of readRecord(), they need to copy the output of this method.
        Returns:
        a ByteBuffer containing the record.
        Throws:
        java.io.IOException
      • position

        long position()
               throws java.io.IOException
        Deprecated. 
        Returns the position in the underlying FileReadChannel.
        Returns:
        the position.
        Throws:
        java.io.IOException
      • position

        void position(long newPosition)
               throws java.io.IOException
        Deprecated. 
        Sets the read position of the underlying FileReadChannel. The position value should only be set using the value obtained from a previous position() call.
        Parameters:
        newPosition - the position at which to set the reader.
        Throws:
        java.io.IOException