Class BufferIORequest

    • Field Detail

      • PROGRESS_INTERVAL

        public static final int PROGRESS_INTERVAL
        Number of lines per progress increment.
        See Also:
        Constant Field Values
      • ERROR_OCCURRED

        public static final java.lang.String ERROR_OCCURRED
        Buffer boolean property set when an error occurs.
        See Also:
        Constant Field Values
      • view

        protected final View view
      • buffer

        protected final Buffer buffer
      • session

        protected final java.lang.Object session
      • vfs

        protected final VFS vfs
      • path

        protected java.lang.String path
      • markersPath

        protected final java.lang.String markersPath
    • Constructor Detail

      • BufferIORequest

        protected BufferIORequest​(View view,
                                  Buffer buffer,
                                  java.lang.Object session,
                                  VFS vfs,
                                  java.lang.String path)
        Creates a new buffer I/O request.
        Parameters:
        view - The view
        buffer - The buffer
        session - The VFS session
        vfs - The VFS
        path - The path
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Task
      • getCharIOBufferSize

        public static int getCharIOBufferSize()
        Size of character I/O buffers.
      • getByteIOBufferSize

        public static int getByteIOBufferSize()
        Size of byte I/O buffers.
      • autodetect

        protected java.io.Reader autodetect​(java.io.InputStream in)
                                     throws java.io.IOException
        Tries to detect if the stream is gzipped, and if it has an encoding specified with an XML PI.
        Throws:
        java.io.IOException
      • read

        protected SegmentBuffer read​(java.io.Reader in,
                                     long length,
                                     boolean insert)
                              throws java.io.IOException,
                                     java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • write

        protected void write​(Buffer buffer,
                             java.io.OutputStream out)
                      throws java.io.IOException,
                             java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • endSessionQuietly

        protected void endSessionQuietly()