Package org.teavm.cache
Class VarDataOutput
- java.lang.Object
-
- org.teavm.cache.VarDataOutput
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class VarDataOutput extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description VarDataOutput(OutputStream output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidwrite(String s)voidwriteBytes(byte[] data)voidwriteDouble(double value)voidwriteFloat(float value)voidwriteSigned(int value)voidwriteSigned(long value)voidwriteUnsigned(int value)voidwriteUnsigned(long value)
-
-
-
Constructor Detail
-
VarDataOutput
public VarDataOutput(OutputStream output)
-
-
Method Detail
-
writeUnsigned
public void writeUnsigned(int value) throws IOException- Throws:
IOException
-
writeSigned
public void writeSigned(int value) throws IOException- Throws:
IOException
-
writeUnsigned
public void writeUnsigned(long value) throws IOException- Throws:
IOException
-
writeSigned
public void writeSigned(long value) throws IOException- Throws:
IOException
-
writeFloat
public void writeFloat(float value) throws IOException- Throws:
IOException
-
writeDouble
public void writeDouble(double value) throws IOException- Throws:
IOException
-
write
public void write(String s) throws IOException
- Throws:
IOException
-
writeBytes
public void writeBytes(byte[] data) throws IOException- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-