Package editor

Class GosuDocument.DocumentReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.lang.Readable
    Enclosing class:
    GosuDocument

    class GosuDocument.DocumentReader
    extends java.io.Reader
    Class to provide Reader functionality from a portion of a Document.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int index  
      (package private) int p0  
      (package private) int p1  
      (package private) int pos  
      (package private) javax.swing.text.Segment segment  
      • Fields inherited from class java.io.Reader

        lock
    • Constructor Summary

      Constructors 
      Constructor Description
      DocumentReader​(int p0, int p1)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      (package private) void loadSegment()  
      int read()  
      int read​(char[] cbuf, int off, int len)  
      void reset()  
      • Methods inherited from class java.io.Reader

        mark, markSupported, nullReader, read, read, ready, skip, transferTo
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • segment

        javax.swing.text.Segment segment
      • p0

        int p0
      • p1

        int p1
      • pos

        int pos
      • index

        int index
    • Constructor Detail

      • DocumentReader

        public DocumentReader​(int p0,
                              int p1)
    • Method Detail

      • read

        public int read()
                 throws java.io.IOException
        Overrides:
        read in class java.io.Reader
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class java.io.Reader
        Throws:
        java.io.IOException
      • reset

        public void reset()
                   throws java.io.IOException
        Overrides:
        reset in class java.io.Reader
        Throws:
        java.io.IOException
      • read

        public int read​(char[] cbuf,
                        int off,
                        int len)
                 throws java.io.IOException
        Specified by:
        read in class java.io.Reader
        Throws:
        java.io.IOException
      • loadSegment

        void loadSegment()
                  throws java.io.IOException
        Throws:
        java.io.IOException