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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidb(byte[] array) write bytesvoidb(byte[] array, int offset, int length) write bytesvoidb(int i) write bytevoidbool(boolean b) write boolean (writes a byte internally)voidclose()voidd(double d) write doublevoidf(float f) write floatstatic Writesget(DataOutput output) Deprecated.Use the constructor instead.voidi(int i) write intvoidl(long i) write longvoids(int i) write shortvoidwrites a string (UTF)
-
Field Details
-
output
-
-
Constructor Details
-
Writes
-
-
Method Details
-
get
Deprecated.Use the constructor instead. -
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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-