includes/org/apache/poi/hpsf/TypeWriter.java
public static int writeToStream(final OutputStream out, final short n)
        throws IOException
    {
        final int length = LittleEndian.SHORT_SIZE;
        byte[] buffer = new byte[length];
        LittleEndian.putShort(buffer, 0, n); // FIXME: unsigned
        out.write(buffer, 0, length);
        return length;
    }
/**
     * <p>Writes a two-byte value (short) to an output stream.</p>
     *
     * @param out The stream to write to.
     * @param n The value to write.
     * @return The number of bytes that have been written.
     * @exception IOException if an I/O error occurs
     */
Writes a two-byte value (short) to an output stream.

@param out The stream to write to.
@param n The value to write.
@return The number of bytes that have been written.
@exception IOException if an I/O error occurs
Writes a two - byte value ( short ) to an output stream . @param out The stream to write to . @param n The value to write . @return The number of bytes that have been written . @exception IOException if an I / O error occurs
public static int writeToStream(final OutputStream out, final short n)
        throws IOException
    {
        final int length = LittleEndian.SHORT_SIZE;
        byte[] buffer = new byte[length];
        LittleEndian.putShort(buffer, 0, n); 
        out.write(buffer, 0, length);
        return length;
    }
public static int writeToStream ( final OutputStream out , final short n ) throws IOException { final int length = LittleEndian . SHORT_SIZE ; byte [ ] buffer = new byte [ length ] ; LittleEndian . putShort ( buffer , 0 , n ) ; out . write ( buffer , 0 , length ) ; return length ; }
<p>Writes a two-byte value (short) to an output stream.</p>
<p > Writes a two - byte value ( short ) to an output stream . < / p >
// FIXME: unsigned
