Top Description Fields Constructors Methods
com.github.javaparser

public Class StreamProvider

extends Object
implements Provider
Class Inheritance
All Implemented Interfaces
com.github.javaparser.Provider
Imports
java.io.BufferedReader, .IOException, .InputStream, .InputStreamReader, .Reader

NOTE : This generated class can be safely deleted if installing in a GWT installation (use StringProvider instead)

Field Summary

Modifier and TypeField and Description
pack-priv Reader

Constructor Summary

AccessConstructor and Description
public
public
public
StreamProvider(InputStream stream, String charsetName)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements com.github.javaparser.Provider.close.

Closes the stream and releases any system resources associated with it.
public int
read(char[]
Destination buffer
buffer
,
int
Offset at which to start storing characters
off
,
int
The maximum possible number of characters to read
len
)

Implements com.github.javaparser.Provider.read.

Reads characters into an array
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_readerback to summary
pack-priv Reader _reader

Constructor Detail

StreamProviderback to summary
public StreamProvider(Reader reader)
StreamProviderback to summary
public StreamProvider(InputStream stream) throws IOException
StreamProviderback to summary
public StreamProvider(InputStream stream, String charsetName) throws IOException

Method Detail

closeback to summary
public void close() throws IOException

Implements com.github.javaparser.Provider.close.

Doc from com.github.javaparser.Provider.close.

Closes the stream and releases any system resources associated with it.

Annotations
@Override
readback to summary
public int read(char[] buffer, int off, int len) throws IOException

Implements com.github.javaparser.Provider.read.

Doc from com.github.javaparser.Provider.read.

Reads characters into an array

Parameters
buffer:char[]

Destination buffer

off:int

Offset at which to start storing characters

len:int

The maximum possible number of characters to read

Returns:int

The number of characters read, or -1 if all read

Annotations
@Override