| Modifier and Type | Class and Description |
|---|---|
| public static enum | SnuggleInput.
Enumerates the various types of inputs we support. |
| Modifier and Type | Field and Description |
|---|---|
| private String | encoding
The encoding for this input, used for |
| private final File | |
| private String | identifier
An "identifier" for this input. |
| private final InputStream | |
| private final Reader | |
| private final String | |
| private String | |
| private final SnuggleInput. | type
The "type" of input encapsulated by an instance of this class. |
| private URI | uri
An (optional) URI for this input. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| private | SnuggleInput(final SnuggleInput.
|
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public String | |
| public File | |
| public String | |
| public InputStream | getInputStream()
Returns the |
| public Reader | |
| public String | |
| public SnuggleInput. | |
| public URI | |
| public void | |
| public void | setIdentifier(String
new identifier, which may be null. identifier)Sets the "identifier" for this input. |
| public void | |
| public String |
| encoding | back to summary |
|---|---|
| private String encoding The encoding for this input, used for | |
| file | back to summary |
|---|---|
| private final File file | |
| identifier | back to summary |
|---|---|
| private String identifier An "identifier" for this input. This is used when formulating error messages. Clients can use as they require - e.g. as a kind of System ID, URL or File name. This must not be null. | |
| inputStream | back to summary |
|---|---|
| private final InputStream inputStream | |
| reader | back to summary |
|---|---|
| private final Reader reader | |
| string | back to summary |
|---|---|
| private final String string | |
| stringRepresentation | back to summary |
|---|---|
| private String stringRepresentation | |
| type | back to summary |
|---|---|
| private final SnuggleInput. The "type" of input encapsulated by an instance of this class. | |
| uri | back to summary |
|---|---|
| private URI uri An (optional) URI for this input. If provided, this can be used to help resolve links to other Resources. | |
| SnuggleInput | back to summary |
|---|---|
| public SnuggleInput(final String string) | |
| SnuggleInput | back to summary |
|---|---|
| public SnuggleInput(final String string, final String identifier) | |
| SnuggleInput | back to summary |
|---|---|
| public SnuggleInput(final File file) | |
| SnuggleInput | back to summary |
|---|---|
| public SnuggleInput(final File file, final String identifier) | |
| SnuggleInput | back to summary |
|---|---|
| public SnuggleInput(final File file, final String identifier, String encoding) | |
| SnuggleInput | back to summary |
|---|---|
| public SnuggleInput(final InputStream inputStream) | |
| SnuggleInput | back to summary |
|---|---|
| public SnuggleInput(final InputStream inputStream, final String identifier) | |
| SnuggleInput | back to summary |
|---|---|
| public SnuggleInput(final InputStream inputStream, final String identifier, final String encoding) | |
| SnuggleInput | back to summary |
|---|---|
| public SnuggleInput(final Reader reader) | |
| SnuggleInput | back to summary |
|---|---|
| public SnuggleInput(final Reader reader, final String identifier) | |
| SnuggleInput | back to summary |
|---|---|
| private SnuggleInput(final SnuggleInput. | |
| buildStringRepresentation | back to summary |
|---|---|
| private String buildStringRepresentation() | |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() | |
| getFile | back to summary |
|---|---|
| public File getFile() Returns the | |
| getIdentifier | back to summary |
|---|---|
| public String getIdentifier() Returns the "identifier" for this input. This is used when formulating error messages. You can use as you require - e.g. as a kind of System ID, URL or File name. | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() Returns the | |
| getReader | back to summary |
|---|---|
| public Reader getReader() Returns the | |
| getString | back to summary |
|---|---|
| public String getString() Returns the String that provided this input if type is | |
| getType | back to summary |
|---|---|
| public SnuggleInput. Returns the "type" of input, represented by an instance of the | |
| getURI | back to summary |
|---|---|
| public URI getURI() Returns an (optional) URI for this input. If provided, this can be used to help resolve links
to other | |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String encoding) | |
| setIdentifier | back to summary |
|---|---|
| public void setIdentifier(String identifier) Sets the "identifier" for this input. This is used when formulating error messages. You can use as you require - e.g. as a kind of System ID, URL or File name.
| |
| setURI | back to summary |
|---|---|
| public void setURI(URI uri) Sets a URI for this input. If provided, this can be used to help resolve links
to other
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final SnuggleInput. | FILE
Input is read from a File using either a specified encoding or the platform default encoding |
| public static final SnuggleInput. | INPUT_STREAM
Input is read from an |
| public static final SnuggleInput. | |
| public static final SnuggleInput. | STRING
Input is read from a String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SnuggleInput. | |
| public static SnuggleInput. |
| FILE | back to summary |
|---|---|
| public static final SnuggleInput. Input is read from a File using either a specified encoding or the platform default encoding | |
| INPUT_STREAM | back to summary |
|---|---|
| public static final SnuggleInput. Input is read from an | |
| READER | back to summary |
|---|---|
| public static final SnuggleInput. Input is read from a | |
| STRING | back to summary |
|---|---|
| public static final SnuggleInput. Input is read from a String | |
| InputType | back to summary |
|---|---|
| private InputType() | |
| valueOf | back to summary |
|---|---|
| public static SnuggleInput. | |
| values | back to summary |
|---|---|
| public static SnuggleInput. | |