public class WriteableImageOutput extends Object implements ReadWriteable, Cloneable
Modifier and Type | Field and Description |
---|---|
File |
file |
StatusConsumption |
stats |
twitter4j.Status |
status |
URL |
url |
Constructor and Description |
---|
WriteableImageOutput() |
WriteableImageOutput(twitter4j.Status status,
URL url,
File file,
StatusConsumption stats) |
Modifier and Type | Method and Description |
---|---|
String |
asciiHeader()
Header for ascii input.
|
byte[] |
binaryHeader()
Header for binary input.
|
WriteableImageOutput |
clone() |
List<File> |
listImageFiles() |
List<File> |
listImageFiles(String root) |
void |
readASCII(Scanner in)
Read internal state from in.
|
void |
readBinary(DataInput in)
Read internal state from in.
|
String |
toString() |
void |
writeASCII(PrintWriter out)
Write the content of this as ascii to out.
|
void |
writeBinary(DataOutput out)
Write the content of this as binary to out.
|
public twitter4j.Status status
public StatusConsumption stats
public WriteableImageOutput()
public WriteableImageOutput(twitter4j.Status status, URL url, File file, StatusConsumption stats)
status
- url
- file
- stats
- public void readBinary(DataInput in) throws IOException
ReadableBinary
readBinary
in interface ReadableBinary
in
- source to read from.IOException
- an error reading inputpublic byte[] binaryHeader()
ReadableBinary
binaryHeader
in interface ReadableBinary
binaryHeader
in interface WriteableBinary
public void writeBinary(DataOutput out) throws IOException
WriteableBinary
writeBinary
in interface WriteableBinary
out
- sink to write toIOException
- an error writing to outpublic void readASCII(Scanner in) throws IOException
ReadableASCII
readASCII
in interface ReadableASCII
in
- source to read from.IOException
- an error reading inputpublic String asciiHeader()
ReadableASCII
asciiHeader
in interface ReadableASCII
asciiHeader
in interface WriteableASCII
public void writeASCII(PrintWriter out) throws IOException
WriteableASCII
writeASCII
in interface WriteableASCII
out
- sink to write toIOException
- an error writing to outpublic List<File> listImageFiles()
public List<File> listImageFiles(String root)
root
- public WriteableImageOutput clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException