Class AbstractVirtualFileResource
java.lang.Object
com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.AbstractVirtualFileResource
- All Implemented Interfaces:
FileResource,Resource,AutoCloseable
- Direct Known Subclasses:
AbstractFileResource
Abstract base implementation of a file resource which uses a temporary file.
The implementation preserves the original file name including preceding directory structures for plugins which rely on path names.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.buschmais.jqassistant.plugin.common.api.scanner.filesystem.FileResource
createStream
-
Field Details
-
TMP_DIR_PREFIX
- See Also:
-
-
Constructor Details
-
AbstractVirtualFileResource
public AbstractVirtualFileResource()
-
-
Method Details
-
getFile
- Specified by:
getFilein interfaceFileResource- Throws:
IOException
-
getRelativePath
- Throws:
IOException
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceResource
-