public class ConvertUSMFList extends Object implements Writeable
Constructor and Description |
---|
ConvertUSMFList(TwitterStatusList<? extends USMFStatus> list,
Class<? extends GeneralJSON> convertType) |
Modifier and Type | Method and Description |
---|---|
String |
asciiHeader()
Header for ascii output.
|
byte[] |
binaryHeader()
Header for binary output.
|
void |
writeASCII(PrintWriter writer)
Write the content of this as ascii to out.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
public ConvertUSMFList(TwitterStatusList<? extends USMFStatus> list, Class<? extends GeneralJSON> convertType)
list
- the list being writtenconvertType
- type to convert topublic void writeASCII(PrintWriter writer) throws IOException
WriteableASCII
writeASCII
in interface WriteableASCII
writer
- sink to write toIOException
- an error writing to outpublic String asciiHeader()
WriteableASCII
asciiHeader
in interface WriteableASCII
public void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
out
- sink to write toIOException
- an error writing to outpublic byte[] binaryHeader()
WriteableBinary
binaryHeader
in interface WriteableBinary