C# Class Ar.Com.Hjg.Pngcs.BufferedStreamFeeder

Mostra file Open project: devedse/DeveMazeGenerator

Public Methods

Method Description
BufferedStreamFeeder ( Stream ist ) : System
BufferedStreamFeeder ( Stream ist, int bufsize ) : System
close ( ) : void
feed ( IBytesConsumer consumer ) : int

Feeds bytes to the consumer Returns bytes actually consumed This should return 0 only if the stream is EOF or the consumer is done

feed ( IBytesConsumer consumer, int maxbytes ) : int
feedFixed ( IBytesConsumer consumer, int nbytes ) : bool
getStream ( ) : Stream

Stream from which bytes are read

hasMoreToFeed ( ) : bool
isEof ( ) : bool
setCloseStream ( bool closeStream ) : void
setFailIfNoFeed ( bool failIfNoFeed ) : void
setInputStream ( Stream ist ) : void

Protected Methods

Method Description
refillBuffer ( ) : void

Method Details

BufferedStreamFeeder() public method

public BufferedStreamFeeder ( Stream ist ) : System
ist Stream
return System

BufferedStreamFeeder() public method

public BufferedStreamFeeder ( Stream ist, int bufsize ) : System
ist Stream
bufsize int
return System

close() public method

public close ( ) : void
return void

feed() public method

Feeds bytes to the consumer Returns bytes actually consumed This should return 0 only if the stream is EOF or the consumer is done
public feed ( IBytesConsumer consumer ) : int
consumer IBytesConsumer
return int

feed() public method

public feed ( IBytesConsumer consumer, int maxbytes ) : int
consumer IBytesConsumer
maxbytes int
return int

feedFixed() public method

public feedFixed ( IBytesConsumer consumer, int nbytes ) : bool
consumer IBytesConsumer
nbytes int
return bool

getStream() public method

Stream from which bytes are read
public getStream ( ) : Stream
return Stream

hasMoreToFeed() public method

public hasMoreToFeed ( ) : bool
return bool

isEof() public method

public isEof ( ) : bool
return bool

refillBuffer() protected method

protected refillBuffer ( ) : void
return void

setCloseStream() public method

public setCloseStream ( bool closeStream ) : void
closeStream bool
return void

setFailIfNoFeed() public method

public setFailIfNoFeed ( bool failIfNoFeed ) : void
failIfNoFeed bool
return void

setInputStream() public method

public setInputStream ( Stream ist ) : void
ist Stream
return void