Class DiscardingObjectOutput

  • All Implemented Interfaces:
    java.io.DataOutput, java.io.ObjectOutput, java.lang.AutoCloseable

    public class DiscardingObjectOutput
    extends java.lang.Object
    implements java.io.ObjectOutput
    Simple implementation of an ObjectOutput interface that accepts and discards all output.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void flush()  
      void write​(byte[] paramArrayOfByte)  
      void write​(byte[] paramArrayOfByte, int paramInt1, int paramInt2)  
      void write​(int paramInt)  
      void writeBoolean​(boolean paramBoolean)  
      void writeByte​(int paramInt)  
      void writeBytes​(java.lang.String paramString)  
      void writeChar​(int paramInt)  
      void writeChars​(java.lang.String paramString)  
      void writeDouble​(double paramDouble)  
      void writeFloat​(float paramFloat)  
      void writeInt​(int paramInt)  
      void writeLong​(long paramLong)  
      void writeObject​(java.lang.Object paramObject)  
      void writeShort​(int paramInt)  
      void writeUTF​(java.lang.String paramString)  
      • Methods inherited from class java.lang.Object

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

      • DiscardingObjectOutput

        public DiscardingObjectOutput()
    • Method Detail

      • writeBoolean

        public void writeBoolean​(boolean paramBoolean)
                          throws java.io.IOException
        Specified by:
        writeBoolean in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeByte

        public void writeByte​(int paramInt)
                       throws java.io.IOException
        Specified by:
        writeByte in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeShort

        public void writeShort​(int paramInt)
                        throws java.io.IOException
        Specified by:
        writeShort in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeChar

        public void writeChar​(int paramInt)
                       throws java.io.IOException
        Specified by:
        writeChar in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeInt

        public void writeInt​(int paramInt)
                      throws java.io.IOException
        Specified by:
        writeInt in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeLong

        public void writeLong​(long paramLong)
                       throws java.io.IOException
        Specified by:
        writeLong in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeFloat

        public void writeFloat​(float paramFloat)
                        throws java.io.IOException
        Specified by:
        writeFloat in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeDouble

        public void writeDouble​(double paramDouble)
                         throws java.io.IOException
        Specified by:
        writeDouble in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeBytes

        public void writeBytes​(java.lang.String paramString)
                        throws java.io.IOException
        Specified by:
        writeBytes in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeChars

        public void writeChars​(java.lang.String paramString)
                        throws java.io.IOException
        Specified by:
        writeChars in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeUTF

        public void writeUTF​(java.lang.String paramString)
                      throws java.io.IOException
        Specified by:
        writeUTF in interface java.io.DataOutput
        Throws:
        java.io.IOException
      • writeObject

        public void writeObject​(java.lang.Object paramObject)
                         throws java.io.IOException
        Specified by:
        writeObject in interface java.io.ObjectOutput
        Throws:
        java.io.IOException
      • write

        public void write​(int paramInt)
                   throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Specified by:
        write in interface java.io.ObjectOutput
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] paramArrayOfByte)
                   throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Specified by:
        write in interface java.io.ObjectOutput
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] paramArrayOfByte,
                          int paramInt1,
                          int paramInt2)
                   throws java.io.IOException
        Specified by:
        write in interface java.io.DataOutput
        Specified by:
        write in interface java.io.ObjectOutput
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.ObjectOutput
        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.ObjectOutput
        Throws:
        java.io.IOException