Class TokenFileOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.lang.AutoCloseable, TokenAppender

    public class TokenFileOutputStream
    extends java.io.DataOutputStream
    implements TokenAppender
    • Field Summary

      • Fields inherited from class java.io.DataOutputStream

        written
      • Fields inherited from class java.io.FilterOutputStream

        out
    • Constructor Summary

      Constructors 
      Constructor Description
      TokenFileOutputStream​(java.io.File outputFile)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void append​(Token token)  
      void writeToken​(Token token)  
      • Methods inherited from class java.io.DataOutputStream

        flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
      • Methods inherited from class java.io.FilterOutputStream

        close, write
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.io.DataOutput

        write
    • Constructor Detail

      • TokenFileOutputStream

        public TokenFileOutputStream​(java.io.File outputFile)
                              throws java.io.FileNotFoundException,
                                     java.io.IOException
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
    • Method Detail

      • writeToken

        public void writeToken​(Token token)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • append

        public void append​(Token token)
                    throws java.io.IOException
        Specified by:
        append in interface TokenAppender
        Throws:
        java.io.IOException