C# Класс Lucene.Net.Support.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(IDataOutput) method.

Наследование: IDataOutput, IDisposable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
written int

Открытые методы

Метод Описание
DataOutputStream ( Stream @out ) : System

Creates a new data output stream to write data to the specified underlying output stream. The counter written is set to zero.

Dispose ( ) : void
Flush ( ) : void
Write ( byte b ) : void
WriteBoolean ( bool v ) : void
WriteByte ( int v ) : void
WriteBytes ( string s ) : void
WriteChar ( int v ) : void
WriteChars ( string s ) : void
WriteDouble ( double v ) : void
WriteFloat ( float v ) : void
WriteInt ( int v ) : void
WriteLong ( long v ) : void
WriteShort ( int v ) : void
WriteUTF ( string str ) : void

Приватные методы

Метод Описание
IncCount ( int value ) : void

Increases the written counter by the specified value until it reaches int.MaxValue.

Write ( byte b, int off, int len ) : void
Write ( int b ) : void
WriteUTF ( string str, IDataOutput @out ) : int

Описание методов

DataOutputStream() публичный Метод

Creates a new data output stream to write data to the specified underlying output stream. The counter written is set to zero.
public DataOutputStream ( Stream @out ) : System
@out Stream
Результат System

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Flush() публичный Метод

public Flush ( ) : void
Результат void

Write() публичный Метод

public Write ( byte b ) : void
b byte
Результат void

WriteBoolean() публичный Метод

public WriteBoolean ( bool v ) : void
v bool
Результат void

WriteByte() публичный Метод

public WriteByte ( int v ) : void
v int
Результат void

WriteBytes() публичный Метод

public WriteBytes ( string s ) : void
s string
Результат void

WriteChar() публичный Метод

public WriteChar ( int v ) : void
v int
Результат void

WriteChars() публичный Метод

public WriteChars ( string s ) : void
s string
Результат void

WriteDouble() публичный Метод

public WriteDouble ( double v ) : void
v double
Результат void

WriteFloat() публичный Метод

public WriteFloat ( float v ) : void
v float
Результат void

WriteInt() публичный Метод

public WriteInt ( int v ) : void
v int
Результат void

WriteLong() публичный Метод

public WriteLong ( long v ) : void
v long
Результат void

WriteShort() публичный Метод

public WriteShort ( int v ) : void
v int
Результат void

WriteUTF() публичный Метод

public WriteUTF ( string str ) : void
str string
Результат void

Описание свойств

written защищенное свойство

The number of bytes written to the data output stream so far. If this counter overflows, it will be wrapped to int.MaxValue.
protected int written
Результат int