FileDocCategorySizeDatePackage
UDataOutputStream.javaAPI DocAndroid 1.5 API1748Wed May 06 22:41:16 BST 2009com.vladium.jcd.lib

UDataOutputStream

public final class UDataOutputStream extends DataOutputStream
A trivial extension to java.io.DataInputStream to provide methods for writing unsigned 16- and 32-bit integers with simple mnemonics. It uses correspondingly wider native types to preserve the full range of the unsigned types.
author
(C) 2001, Vlad Roubtsov

Fields Summary
Constructors Summary
public UDataOutputStream(OutputStream _out)

        super (_out);
    
Methods Summary
public final voidwriteU2(int uint)

        writeShort ((short) uint); // this narrowing cast is Ok
    
public final voidwriteU4(long ulong)

        writeInt ((int) ulong); // this narrowing cast is Ok