FileDocCategorySizeDatePackage
OrderedDataOutputStream.javaAPI DocAndroid 5.1 API1792Thu Mar 12 22:22:42 GMT 2015com.android.gallery3d.exif

OrderedDataOutputStream

public class OrderedDataOutputStream extends FilterOutputStream

Fields Summary
private final ByteBuffer
mByteBuffer
Constructors Summary
public OrderedDataOutputStream(OutputStream out)


       
        super(out);
    
Methods Summary
public com.android.gallery3d.exif.OrderedDataOutputStreamsetByteOrder(java.nio.ByteOrder order)

        mByteBuffer.order(order);
        return this;
    
public com.android.gallery3d.exif.OrderedDataOutputStreamwriteInt(int value)

        mByteBuffer.rewind();
        mByteBuffer.putInt(value);
        out.write(mByteBuffer.array());
        return this;
    
public com.android.gallery3d.exif.OrderedDataOutputStreamwriteRational(Rational rational)

        writeInt((int) rational.getNumerator());
        writeInt((int) rational.getDenominator());
        return this;
    
public com.android.gallery3d.exif.OrderedDataOutputStreamwriteShort(short value)

        mByteBuffer.rewind();
        mByteBuffer.putShort(value);
        out.write(mByteBuffer.array(), 0, 2);
        return this;