public class DataWriter extends Object implements IDataWriter
| Constructor and Description |
|---|
DataWriter(File output) |
DataWriter(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
int |
getPosition() |
void |
writeByte(int b) |
void |
writeByte(int b,
int count) |
void |
writeBytes(byte[] b) |
void |
writeDoubleWord(int dw) |
void |
writeLong(long l) |
void |
writeUtf(String s) |
void |
writeUtf(String s,
int len) |
void |
writeWord(int w) |
public DataWriter(File output) throws FileNotFoundException
FileNotFoundExceptionpublic DataWriter(OutputStream out)
public void writeByte(int b)
throws IOException
writeByte in interface IDataWriterIOExceptionpublic void writeByte(int b,
int count)
throws IOException
writeByte in interface IDataWriterIOExceptionpublic void writeBytes(byte[] b)
throws IOException
writeBytes in interface IDataWriterIOExceptionpublic void writeDoubleWord(int dw)
throws IOException
writeDoubleWord in interface IDataWriterIOExceptionpublic void writeWord(int w)
throws IOException
writeWord in interface IDataWriterIOExceptionpublic void writeLong(long l)
throws IOException
writeLong in interface IDataWriterIOExceptionpublic void flush()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic int getPosition()
getPosition in interface IDataWriterpublic void writeUtf(String s, int len) throws IOException
writeUtf in interface IDataWriterIOExceptionpublic void writeUtf(String s) throws IOException
writeUtf in interface IDataWriterIOExceptionCopyright © 2018. All Rights Reserved.