C# Class Fan.Sys.InStream

InStream interface.
Inheritance: FanObj
显示文件 Open project: xored/f4 Class Usage Examples

Public Methods

Method Description
@typeof ( ) : Type
charset ( ) : Charset
charset ( Charset charset ) : void
close ( ) : bool
eachLine ( Func f ) : void
endian ( ) : Endian
endian ( Endian endian ) : void
make ( InStream input ) : InStream
make_ ( InStream self, InStream input ) : void
peek ( ) : Long
peekChar ( ) : Long
pipe ( OutStream output ) : long
pipe ( OutStream output, Long n ) : long
pipe ( OutStream output, Long toPipe, bool cls ) : long
r ( ) : int

Read a byte using a Java primitive int. Most reads route to this method for efficient mapping to a java.io.InputStream. If we aren't overriding this method, then route back to read() for the subclass to handle.

rChar ( ) : int

Read char as primitive int.

read ( ) : Long
readAllBuf ( ) : Buf
readAllLines ( ) : List
readAllStr ( ) : string
readAllStr ( bool normalizeNewlines ) : string
readBool ( ) : bool
readBuf ( Buf buf, long n ) : Long
readBufFully ( Buf buf, long n ) : Buf
readChar ( ) : Long
readChars ( long n ) : string
readDecimal ( ) : BigDecimal
readF4 ( ) : double
readF8 ( ) : double
readLine ( ) : string
readLine ( Long max ) : string
readObj ( ) : object
readObj ( Map options ) : object
readProps ( ) : Map
readPropsListVals ( ) : Map
readS1 ( ) : long
readS2 ( ) : long
readS4 ( ) : long
readS8 ( ) : long
readStrToken ( ) : string
readStrToken ( Long max ) : string
readStrToken ( Long max, Func f ) : string
readU1 ( ) : long
readU2 ( ) : long
readU4 ( ) : long
readUtf ( ) : string
skip ( long n ) : long
unread ( int b ) : InStream

Unread a byte using a .NET primitive int. If we aren't overriding this method, then route back to read() for the subclass to handle.

unread ( long n ) : InStream
unreadChar ( int b ) : InStream

Unread char as primitive int.

unreadChar ( long c ) : InStream

Protected Methods

Method Description
InStream ( ) : System.Text

Private Methods

Method Description
addProp ( Map props, string n, string v, bool listVals ) : void
hex ( int c ) : int
readProps ( bool listVals ) : Map
readUtfString ( ) : string

Method Details

@typeof() public method

public @typeof ( ) : Type
return Type

InStream() protected method

protected InStream ( ) : System.Text
return System.Text

charset() public method

public charset ( ) : Charset
return Charset

charset() public method

public charset ( Charset charset ) : void
charset Charset
return void

close() public method

public close ( ) : bool
return bool

eachLine() public method

public eachLine ( Func f ) : void
f Func
return void

endian() public method

public endian ( ) : Endian
return Endian

endian() public method

public endian ( Endian endian ) : void
endian Endian
return void

make() public static method

public static make ( InStream input ) : InStream
input InStream
return InStream

make_() public static method

public static make_ ( InStream self, InStream input ) : void
self InStream
input InStream
return void

peek() public method

public peek ( ) : Long
return Long

peekChar() public method

public peekChar ( ) : Long
return Long

pipe() public method

public pipe ( OutStream output ) : long
output OutStream
return long

pipe() public method

public pipe ( OutStream output, Long n ) : long
output OutStream
n Long
return long

pipe() public method

public pipe ( OutStream output, Long toPipe, bool cls ) : long
output OutStream
toPipe Long
cls bool
return long

r() public method

Read a byte using a Java primitive int. Most reads route to this method for efficient mapping to a java.io.InputStream. If we aren't overriding this method, then route back to read() for the subclass to handle.
public r ( ) : int
return int

rChar() public method

Read char as primitive int.
public rChar ( ) : int
return int

read() public method

public read ( ) : Long
return Long

readAllBuf() public method

public readAllBuf ( ) : Buf
return Buf

readAllLines() public method

public readAllLines ( ) : List
return List

readAllStr() public method

public readAllStr ( ) : string
return string

readAllStr() public method

public readAllStr ( bool normalizeNewlines ) : string
normalizeNewlines bool
return string

readBool() public method

public readBool ( ) : bool
return bool

readBuf() public method

public readBuf ( Buf buf, long n ) : Long
buf Buf
n long
return Long

readBufFully() public method

public readBufFully ( Buf buf, long n ) : Buf
buf Buf
n long
return Buf

readChar() public method

public readChar ( ) : Long
return Long

readChars() public method

public readChars ( long n ) : string
n long
return string

readDecimal() public method

public readDecimal ( ) : BigDecimal
return BigDecimal

readF4() public method

public readF4 ( ) : double
return double

readF8() public method

public readF8 ( ) : double
return double

readLine() public method

public readLine ( ) : string
return string

readLine() public method

public readLine ( Long max ) : string
max Long
return string

readObj() public method

public readObj ( ) : object
return object

readObj() public method

public readObj ( Map options ) : object
options Map
return object

readProps() public method

public readProps ( ) : Map
return Map

readPropsListVals() public method

public readPropsListVals ( ) : Map
return Map

readS1() public method

public readS1 ( ) : long
return long

readS2() public method

public readS2 ( ) : long
return long

readS4() public method

public readS4 ( ) : long
return long

readS8() public method

public readS8 ( ) : long
return long

readStrToken() public method

public readStrToken ( ) : string
return string

readStrToken() public method

public readStrToken ( Long max ) : string
max Long
return string

readStrToken() public method

public readStrToken ( Long max, Func f ) : string
max Long
f Func
return string

readU1() public method

public readU1 ( ) : long
return long

readU2() public method

public readU2 ( ) : long
return long

readU4() public method

public readU4 ( ) : long
return long

readUtf() public method

public readUtf ( ) : string
return string

skip() public method

public skip ( long n ) : long
n long
return long

unread() public method

Unread a byte using a .NET primitive int. If we aren't overriding this method, then route back to read() for the subclass to handle.
public unread ( int b ) : InStream
b int
return InStream

unread() public method

public unread ( long n ) : InStream
n long
return InStream

unreadChar() public method

Unread char as primitive int.
public unreadChar ( int b ) : InStream
b int
return InStream

unreadChar() public method

public unreadChar ( long c ) : InStream
c long
return InStream