public interface IndexedFile extends InputPath
InputFile. Accessing any of data exposed here won't trigger the expensive generation of
metadata for the InputFile.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
absolutePath()
Deprecated.
since 6.6 use
inputStream(), filename() or uri() |
java.io.File |
file()
Deprecated.
since 6.6 use
inputStream(), filename() or uri() |
java.lang.String |
filename()
Filename for this file (inclusing extension).
|
java.io.InputStream |
inputStream()
Creates a stream of the file's contents.
|
java.lang.String |
language()
Language, for example "java" or "php".
|
java.nio.file.Path |
path()
Deprecated.
since 6.6 use
inputStream(), filename() or uri() |
java.lang.String |
relativePath()
Deprecated.
since 6.6 use
inputStream(), filename() or uri() |
InputFile.Type |
type()
Does it contain main or test code ?
|
java.net.URI |
uri()
Identifier of the file.
|
isFile, key@Deprecated java.lang.String relativePath()
inputStream(), filename() or uri()FileSystem. File separator is the forward
slash ('/'), even on Microsoft Windows.
src/main/java/com/Foo.java if module base dir is
/path/to/module and if file is
/path/to/module/src/main/java/com/Foo.java.
relativePath in interface InputPathInputFile.relativePath(),
InputDir.relativePath()@Deprecated java.lang.String absolutePath()
inputStream(), filename() or uri()file().getCanonicalPath() to resolve symbolic link.absolutePath in interface InputPathInputFile.absolutePath(),
InputDir.absolutePath()@Deprecated java.io.File file()
inputStream(), filename() or uri()File. It should not be used to read the file in the filesystem.file in interface InputPath#contents(),
inputStream()@Deprecated java.nio.file.Path path()
inputStream(), filename() or uri()Path.
It should not be used to read the file in the filesystem.path in interface InputPath#contents(),
inputStream()java.net.URI uri()
java.lang.String filename()
@CheckForNull java.lang.String language()
InputFile.Type type()
java.io.InputStream inputStream()
throws java.io.IOException
java.io.IOException