Public abstract class DataOutputStream extends FilterOutputStream implements DataOutput
Constructor | Description |
---|---|
DataOutputStream(OutputStream out) | The function of this constructor is to create the data output stream instance and used to write for output stream. |
Method | Description |
---|---|
void write (int b) | The function of this method is to write the represented byte into output stream. |
void flush () | The function of this method is to flush the specified output stream. |
void writeBytes (String s) | The function of this method is to write the content in the form of string to output stream. |
void write (byte[] b, int off, int n) | By using this method it writes the data up to ‘n’ bytes from the output stream to an array of bytes. |
void writeFloat (Float v) | The function of this method is to write the float into 4-bytes to the output stream. |
void writeLong (long v ) | The function of this method is to write the long into 8-bytes to the output stream. |