Package net.sf.okapi.filters.json.parser
Class StringProvider
- java.lang.Object
-
- net.sf.okapi.filters.json.parser.StringProvider
-
-
Constructor Summary
Constructors Constructor Description StringProvider(String string)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the stream and releases any system resources associated with it.intread(char[] cbuf, int off, int len)Reads characters into an array
-
-
-
Constructor Detail
-
StringProvider
public StringProvider(String string)
-
-
Method Detail
-
read
public int read(char[] cbuf, int off, int len) throws IOExceptionDescription copied from interface:ProviderReads characters into an array- Specified by:
readin interfaceProvider- Parameters:
cbuf- Destination bufferoff- Offset at which to start storing characterslen- The maximum possible number of characters to read- Returns:
- The number of characters read, or -1 if all read
- Throws:
IOException
-
close
public void close() throws IOExceptionDescription copied from interface:ProviderCloses the stream and releases any system resources associated with it.- Specified by:
closein interfaceProvider- Throws:
IOException
-
-