Class DataOutputStream
Java's DataOutputStream is similar to .NET's BinaryWriter. However, it writes in a modified UTF-8 format that cannot be read (or duplicated) using BinaryWriter. This is a port of DataOutputStream that is fully compatible with Java's DataInputStream.
Usage Note: Always favor BinaryWriter over DataOutputStream unless you specifically need the modified UTF-8 format and/or the WriteUTF(String) method.
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public class DataOutputStream : object, IDataOutput, IDisposable
Constructors
Name | Description |
---|---|
DataOutputStream(Stream) | Constructs a new DataOutputStream on the |
Fields
Name | Description |
---|---|
written | The number of bytes written out so far. |
Properties
Name | Description |
---|---|
Length |
Methods
Name | Description |
---|---|
Dispose() | |
Flush() | |
Write(Byte[]) | |
Write(Byte[], Int32, Int32) | |
Write(Int32) | |
WriteBoolean(Boolean) | |
WriteByte(Int32) | |
WriteBytes(String) | |
WriteChar(Int32) | |
WriteChars(String) | |
WriteDouble(Double) | |
WriteInt16(Int32) | NOTE: This was writeShort() in Java |
WriteInt32(Int32) | NOTE: This was writeInt() in Java |
WriteInt64(Int64) | NOTE: This was writeLong() in Java |
WriteSingle(Single) | NOTE: This was writeFloat() in Java |
WriteUTF(String) |