com.servingxml.components.flatfile
Class ByteRecordOutput

java.lang.Object
  extended by com.servingxml.components.flatfile.ByteRecordOutput
All Implemented Interfaces:
RecordOutput

public class ByteRecordOutput
extends java.lang.Object
implements RecordOutput


Constructor Summary
ByteRecordOutput(java.nio.charset.Charset charset, byte padByte)
           
 
Method Summary
 byte[] buffer()
           
 void clear()
           
 int getPosition()
           
 int getSize()
           
 int length()
           
 void pushBack(char[] sequence)
           
 void setPosition(int position)
           
 int start()
           
 byte[] toByteArray()
           
 char[] toCharArray()
           
 void writeByte(byte value)
           
 void writeBytes(byte[] value)
           
 void writeCharacters(char[] value)
           
 void writeString(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteRecordOutput

public ByteRecordOutput(java.nio.charset.Charset charset,
                        byte padByte)
Method Detail

toByteArray

public byte[] toByteArray()
Specified by:
toByteArray in interface RecordOutput

toCharArray

public char[] toCharArray()
Specified by:
toCharArray in interface RecordOutput

buffer

public byte[] buffer()

start

public int start()

length

public int length()

writeBytes

public void writeBytes(byte[] value)
Specified by:
writeBytes in interface RecordOutput

writeByte

public void writeByte(byte value)
Specified by:
writeByte in interface RecordOutput

writeCharacters

public void writeCharacters(char[] value)
Specified by:
writeCharacters in interface RecordOutput

writeString

public void writeString(java.lang.String s)
Specified by:
writeString in interface RecordOutput

setPosition

public void setPosition(int position)
Specified by:
setPosition in interface RecordOutput

getPosition

public int getPosition()
Specified by:
getPosition in interface RecordOutput

getSize

public int getSize()
Specified by:
getSize in interface RecordOutput

clear

public void clear()
Specified by:
clear in interface RecordOutput

pushBack

public void pushBack(char[] sequence)
Specified by:
pushBack in interface RecordOutput