Package nom.tam.util

Class BufferEncoder


  • public abstract class BufferEncoder
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void needBuffer​(int need)  
      protected void write​(boolean[] b, int start, int length)  
      protected abstract void write​(byte[] buf, int offset, int length)  
      protected void write​(char[] c, int start, int length)  
      protected void write​(double[] d, int start, int length)  
      protected void write​(float[] f, int start, int length)  
      protected void write​(int[] i, int start, int length)  
      protected void write​(long[] l, int start, int length)  
      protected void write​(short[] s, int start, int length)  
      protected void write​(java.lang.String[] s, int start, int length)  
      protected void writeArray​(java.lang.Object o)  
      protected void writeBoolean​(boolean b)  
      protected void writeByte​(int b)  
      protected void writeChar​(int c)  
      protected void writeChars​(java.lang.String s)  
      protected void writeDouble​(double d)  
      protected void writeFloat​(float f)  
      protected void writeInt​(int i)  
      protected void writeLong​(long l)  
      protected void writeShort​(int s)  
      • Methods inherited from class java.lang.Object

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

      • BufferEncoder

        protected BufferEncoder​(BufferPointer sharedBuffer)
    • Method Detail

      • needBuffer

        protected abstract void needBuffer​(int need)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        protected void write​(boolean[] b,
                             int start,
                             int length)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        protected abstract void write​(byte[] buf,
                                      int offset,
                                      int length)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        protected void write​(char[] c,
                             int start,
                             int length)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        protected void write​(double[] d,
                             int start,
                             int length)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        protected void write​(float[] f,
                             int start,
                             int length)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        protected void write​(int[] i,
                             int start,
                             int length)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        protected void write​(long[] l,
                             int start,
                             int length)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        protected void write​(short[] s,
                             int start,
                             int length)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        protected void write​(java.lang.String[] s,
                             int start,
                             int length)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • writeArray

        protected void writeArray​(java.lang.Object o)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writeBoolean

        protected void writeBoolean​(boolean b)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • writeByte

        protected void writeByte​(int b)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • writeChar

        protected void writeChar​(int c)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • writeChars

        protected void writeChars​(java.lang.String s)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writeDouble

        protected void writeDouble​(double d)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • writeFloat

        protected void writeFloat​(float f)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writeInt

        protected void writeInt​(int i)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • writeLong

        protected void writeLong​(long l)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • writeShort

        protected void writeShort​(int s)
                           throws java.io.IOException
        Throws:
        java.io.IOException