public class MyDataOutputStream
extends java.lang.Object
Constructor and Description |
---|
MyDataOutputStream() |
Modifier and Type | Method and Description |
---|---|
static int |
writeBigUTF(java.lang.String str,
java.io.DataOutput out)
Writes a string to the specified DataOutput using Java modified UTF-8 encoding in a machine-independent manner.
|
static int |
writeSmallUTF(java.lang.String str,
java.io.DataOutput out)
Writes a string to the specified DataOutput using Java modified UTF-8 encoding in a machine-independent manner.
|
public static int writeBigUTF(java.lang.String str, java.io.DataOutput out) throws java.io.IOException
str
- a string to be written.out
- destination to write tojava.io.IOException
- if an I/O error occurs.public static int writeSmallUTF(java.lang.String str, java.io.DataOutput out) throws java.io.IOException
str
- a string to be written.out
- destination to write tojava.io.IOException
- if an I/O error occurs.