Class BinaryFileBuffer

  • All Implemented Interfaces:
    IOStringStack

    public final class BinaryFileBuffer
    extends java.lang.Object
    implements IOStringStack
    This is essentially a thin wrapper on top of a BufferedReader... which keeps the last line in memory.
    • Constructor Summary

      Constructors 
      Constructor Description
      BinaryFileBuffer​(java.io.BufferedReader r)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      boolean empty()  
      java.lang.String peek()  
      java.lang.String pop()  
      • Methods inherited from class java.lang.Object

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

      • BinaryFileBuffer

        public BinaryFileBuffer​(java.io.BufferedReader r)
                         throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface IOStringStack
        Throws:
        java.io.IOException
      • peek

        public java.lang.String peek()
        Specified by:
        peek in interface IOStringStack
      • pop

        public java.lang.String pop()
                             throws java.io.IOException
        Specified by:
        pop in interface IOStringStack
        Throws:
        java.io.IOException