/** * Writes a double (64 bit) to the target stream. * * @param value * the double to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeDouble(double value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeDouble(value); }
/** * Writes a long (64 bit) to the target stream. * * @param value * the long to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeLong(long value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeLong(value); }
/** * Writes a boolean to the target stream. * * @param value * the boolean value to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeBoolean(boolean value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeBoolean(value); }
/** * Writes an integer (32 bit) to the target stream. * * @param value * the integer to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeInt(int value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeInt(value); }
/** * Writes a short (16 bit) to the target stream. * * @param value * the short to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeShort(int value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeShort(value); }
/** * Writes a byte (8 bit) to the target stream. * * @param value * the byte to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeByte(int value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeByte(value); }
/** * Writes a character (16 bit) to the target stream. * * @param value * the character to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeChar(int value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeChar(value); }
/** * Writes a float (32 bit) to the target stream. * * @param value * the float to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeFloat(float value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeFloat(value); }
/** * Writes the string {@code value} as a sequence of bytes to the target * stream. Only the least significant byte of each character in the string * is written. * * @param value * the string to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeBytes(String value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeBytes(value); }
/** * Writes a single byte to the target stream. Only the least significant * byte of the integer {@code value} is written to the stream. Blocks until * the byte is actually written. * * @param value * the byte to write. * @throws IOException * if an error occurs while writing to the target stream. */ @Override public void write(int value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.write(value); }
/** * Writes a string encoded with {@link DataInput modified UTF-8} to the * target stream. * * @param value * the string to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeUTF(String value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeUTF(value); } }
/** * Writes {@code count} bytes from the byte array {@code buffer} starting at * offset {@code index} to the target stream. Blocks until all bytes are * written. * * @param buffer * the buffer to write. * @param offset * the index of the first byte in {@code buffer} to write. * @param length * the number of bytes from {@code buffer} to write to the output * stream. * @throws IOException * if an error occurs while writing to the target stream. */ @Override public void write(byte[] buffer, int offset, int length) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.write(buffer, offset, length); }
/** * Writes the string {@code value} as a sequence of characters to the target * stream. * * @param value * the string to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeChars(String value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeChars(value); }
/** * Writes a boolean to the target stream. * * @param value * the boolean value to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeBoolean(boolean value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeBoolean(value); }
/** * Writes a byte (8 bit) to the target stream. * * @param value * the byte to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeByte(int value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeByte(value); }
/** * Writes a float (32 bit) to the target stream. * * @param value * the float to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeFloat(float value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeFloat(value); }
/** * Writes a character (16 bit) to the target stream. * * @param value * the character to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeChar(int value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeChar(value); }
/** * Writes a double (64 bit) to the target stream. * * @param value * the double to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeDouble(double value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeDouble(value); }
/** * Writes a float (32 bit) to the target stream. * * @param value * the float to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeFloat(float value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeFloat(value); }
/** * Writes a short (16 bit) to the target stream. * * @param value * the short to write to the target stream. * @throws IOException * if an error occurs while writing to the target stream. */ public void writeShort(int value) throws IOException { checkWritePrimitiveTypes(); primitiveTypes.writeShort(value); }