com.bluemarsh.jswat
Interface SourceSource
- All Known Implementing Classes:
- FileSource, ZipSource
- public interface SourceSource
SourceSource describes a source of a source file. That is, it is where
the contents of a source file come from. Concrete implementations
include FileSource
which is backed by a
java.io.File
.
- Author:
- Nathan Fiedler
Method Summary |
java.io.InputStream |
getInputStream()
Get the input stream for reading the source code. |
java.lang.String |
getName()
Returns just the name of the source file, not including the path
to the file, if any. |
getName
public java.lang.String getName()
- Returns just the name of the source file, not including the path
to the file, if any.
- Returns:
- name of source.
getInputStream
public java.io.InputStream getInputStream()
- Get the input stream for reading the source code.
- Returns:
- input stream to the source code.