Package nom.tam.util
Class BufferEncoder
- java.lang.Object
-
- nom.tam.util.BufferEncoder
-
public abstract class BufferEncoder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private BufferPointersharedBuffer
-
Constructor Summary
Constructors Modifier Constructor Description protectedBufferEncoder(BufferPointer sharedBuffer)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidneedBuffer(int need)protected voidwrite(boolean[] b, int start, int length)protected abstract voidwrite(byte[] buf, int offset, int length)protected voidwrite(char[] c, int start, int length)protected voidwrite(double[] d, int start, int length)protected voidwrite(float[] f, int start, int length)protected voidwrite(int[] i, int start, int length)protected voidwrite(long[] l, int start, int length)protected voidwrite(short[] s, int start, int length)protected voidwrite(java.lang.String[] s, int start, int length)protected voidwriteArray(java.lang.Object o)protected voidwriteBoolean(boolean b)protected voidwriteByte(int b)protected voidwriteChar(int c)protected voidwriteChars(java.lang.String s)protected voidwriteDouble(double d)protected voidwriteFloat(float f)protected voidwriteInt(int i)protected voidwriteLong(long l)protected voidwriteShort(int s)
-
-
-
Field Detail
-
sharedBuffer
private final BufferPointer sharedBuffer
-
-
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
-
-