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
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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