public class InputStreamReaderSource extends AbstractReaderSource
A ReaderSource for source strings.
Fields inherited from class | Fields |
---|---|
class AbstractReaderSource |
configuration |
Constructor and description |
---|
InputStreamReaderSource(InputStream stream, CompilerConfiguration configuration) Creates the ReaderSource from a File descriptor. |
Type Params | Return Type | Name and description |
---|---|---|
|
public boolean |
canReopenSource() Returns true if the source can be restarted (ie. if getReader() will return non-null on subsequent calls). |
|
public Reader |
getReader() Returns a new Reader on the underlying source object. |
|
public URI |
getURI() TODO: Should return the URI for this source, but we can't know what it is here. |
Methods inherited from class | Name |
---|---|
class AbstractReaderSource |
canReopenSource, cleanup, getLine |
Creates the ReaderSource from a File descriptor.
stream
- stream containing sourceconfiguration
- configuration for compiling sourceReturns true if the source can be restarted (ie. if getReader() will return non-null on subsequent calls).
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.