Package arc.util.io
Class Writes
java.lang.Object
arc.util.io.Writes
- All Implemented Interfaces:
Closeable
,AutoCloseable
A wrapper for DataOutput with more concise method names and no IOExceptions.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
b
(byte[] array) write bytesvoid
b
(byte[] array, int offset, int length) write bytesvoid
b
(int i) write bytevoid
bool
(boolean b) write boolean (writes a byte internally)void
close()
void
d
(double d) write doublevoid
f
(float f) write floatstatic Writes
get
(DataOutput output) void
i
(int i) write intvoid
l
(long i) write longvoid
s
(int i) write shortvoid
writes a string (UTF)
-
Field Details
-
output
-
-
Constructor Details
-
Writes
-
-
Method Details
-
get
-
l
public void l(long i) write long -
i
public void i(int i) write int -
b
public void b(int i) write byte -
b
public void b(byte[] array, int offset, int length) write bytes -
b
public void b(byte[] array) write bytes -
bool
public void bool(boolean b) write boolean (writes a byte internally) -
s
public void s(int i) write short -
f
public void f(float f) write float -
d
public void d(double d) write double -
str
writes a string (UTF) -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-