public class FilePathNut extends AbstractNut
Represents a nut on the path system provided or to be managed by the WUIC framework. Thanks to
FilePath
, the nut could also be a ZIP entry.
Constructor and Description |
---|
FilePathNut(FilePath p,
String name,
NutType ft,
Future<Long> versionNumber)
Builds a new
Nut based on a given path. |
Modifier and Type | Method and Description |
---|---|
String |
getParentFile()
If the file is stored in a directory on the file system, then this method returns the directory.
|
InputStream |
openStream()
Opens and returns an
InputStream pointing to the nut. |
equals, getInitialName, getInitialNutType, getProxyUri, getVersionNumber, hashCode, isDynamic, setProxyUri, setVersionNumber, toString
public InputStream openStream() throws IOException
Opens and returns an InputStream
pointing to the nut.
IOException
- if an I/O error occurspublic String getParentFile()
If the file is stored in a directory on the file system, then this method returns the directory.
getParentFile
in interface Nut
getParentFile
in class AbstractNut
null
if the nut is not directly accessible on the file systemCopyright © 2012-2015. All Rights Reserved.