DataOutputStream with additional convenience methods.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | writeInt(int value, boolean
If true, small positive numbers will be more efficient (1 byte) and small negative numbers will be
inefficient (5 bytes). optimizePositive)Writes a 1-5 byte int. |
| public void | |
| private void |
| DataOutput | back to summary |
|---|---|
| public DataOutput(OutputStream out) | |
| writeInt | back to summary |
|---|---|
| public int writeInt(int value, boolean optimizePositive) throws IOException Writes a 1-5 byte int.
| |
| writeString | back to summary |
|---|---|
| public void writeString(String value) throws IOException Writes a length and then the string as UTF8.
| |
| writeString_slow | back to summary |
|---|---|
| private void writeString_slow(String value, int charCount, int charIndex) throws IOException | |