C# Class Lucene.Net.Support.DataInputStream

Java's DataInputStream is similar to .NET's BinaryReader. However, it reads using a modified UTF-8 format that cannot be read using BinaryReader. This is a port of DataInputStream that is fully compatible with Java's DataOutputStream.

Usage Note: Always favor BinaryReader over DataInputStream unless you specifically need the modified UTF-8 format and/or the ReadUTF(IDataInput) method.

Inheritance: IDataInput, IDisposable
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Méthode Description
DataInputStream ( Stream @in ) : System

Creates a DataInputStream that uses the specified underlying InputStream.

Dispose ( ) : void
Read ( byte b ) : int
Read ( byte b, int off, int len ) : int
ReadBoolean ( ) : bool
ReadByte ( ) : byte
ReadChar ( ) : char
ReadDouble ( ) : double
ReadFloat ( ) : float
ReadFully ( byte b ) : void
ReadFully ( byte b, int off, int len ) : void
ReadInt ( ) : int
ReadLong ( ) : long
ReadShort ( ) : short
ReadUTF ( ) : string
ReadUTF ( IDataInput @in ) : string
ReadUnsignedByte ( ) : int
ReadUnsignedShort ( ) : int
SkipBytes ( int n ) : int

Private Methods

Méthode Description
ReadLine ( ) : string
Skip ( Stream stream, int n ) : int

Helper method for SkipBytes, since Position and Seek do not work on non-seekable streams.

Method Details

DataInputStream() public méthode

Creates a DataInputStream that uses the specified underlying InputStream.
public DataInputStream ( Stream @in ) : System
@in Stream
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Read() public méthode

public Read ( byte b ) : int
b byte
Résultat int

Read() public méthode

public Read ( byte b, int off, int len ) : int
b byte
off int
len int
Résultat int

ReadBoolean() public méthode

public ReadBoolean ( ) : bool
Résultat bool

ReadByte() public méthode

public ReadByte ( ) : byte
Résultat byte

ReadChar() public méthode

public ReadChar ( ) : char
Résultat char

ReadDouble() public méthode

public ReadDouble ( ) : double
Résultat double

ReadFloat() public méthode

public ReadFloat ( ) : float
Résultat float

ReadFully() public méthode

public ReadFully ( byte b ) : void
b byte
Résultat void

ReadFully() public méthode

public ReadFully ( byte b, int off, int len ) : void
b byte
off int
len int
Résultat void

ReadInt() public méthode

public ReadInt ( ) : int
Résultat int

ReadLong() public méthode

public ReadLong ( ) : long
Résultat long

ReadShort() public méthode

public ReadShort ( ) : short
Résultat short

ReadUTF() public méthode

public ReadUTF ( ) : string
Résultat string

ReadUTF() public static méthode

public static ReadUTF ( IDataInput @in ) : string
@in IDataInput
Résultat string

ReadUnsignedByte() public méthode

public ReadUnsignedByte ( ) : int
Résultat int

ReadUnsignedShort() public méthode

public ReadUnsignedShort ( ) : int
Résultat int

SkipBytes() public méthode

public SkipBytes ( int n ) : int
n int
Résultat int