public class NonexistentVfsFile extends AbstractVfsFile
Copyright 2009-2012 Partner Software, Inc.
| Constructor and Description |
|---|
NonexistentVfsFile(Vfs vfs,
Path path) |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.OutputStream |
createAppendingOutputStreamImp() |
protected java.io.InputStream |
createInputStreamImp() |
protected java.io.OutputStream |
createOutputStreamImp() |
VfsRandomAccess |
createRandomAccess()
Creates a random access handle for the file.
|
boolean |
exists()
Whether the Vfs node exists.
|
long |
getLastModifiedMillis()
Returns the timestamp in milliseconds that the file was last modified.
|
java.net.URI |
getUri()
URI for this VfsNode.
|
java.net.URL |
getUrl()
URL for this VfsNode.
|
void |
make()
Creates the node and any ancestor directories needed to contain it.
|
void |
remove()
Removes the file.
|
void |
setLastModifiedMillis(long millis)
If possible, sets the date and time the file was last modified in
milliseconds.
|
long |
size() |
java.io.File |
toFile()
java.io.File for this VfsNode.
|
appendBytes, appendText, checksum, copyTo, copyTo, createAppendingBufferedOutputStream, createAppendingBufferedWriter, createAppendingOutputStream, createAppendingWriter, createBufferedInputStream, createBufferedOutputStream, createBufferedReader, createBufferedWriter, createInputStream, createOutputStream, createReader, createWriter, equals, getAbsolutePath, getBaseName, getDirectory, getExtension, getLastModified, getName, getPath, getVfs, hashCode, isBackup, isHidden, moveTo, moveTo, readBytes, readText, readTextAsLines, readTextAsLines, readTextAsLines, readTextRange, regexReplace, regexReplace, renameTo, setLastModified, textReplace, textReplace, toString, withExtension, writeBytes, writeTextprotected java.io.OutputStream createAppendingOutputStreamImp()
throws java.io.IOException
createAppendingOutputStreamImp in class AbstractVfsFilejava.io.IOExceptionprotected java.io.InputStream createInputStreamImp()
throws java.io.IOException
createInputStreamImp in class AbstractVfsFilejava.io.IOExceptionprotected java.io.OutputStream createOutputStreamImp()
throws java.io.IOException
createOutputStreamImp in class AbstractVfsFilejava.io.IOExceptionpublic VfsRandomAccess createRandomAccess() throws java.io.IOException
VfsFilecreateRandomAccess in interface VfsFilecreateRandomAccess in class AbstractVfsFilejava.io.IOException - if file can't be accessedpublic boolean exists()
throws java.io.IOException
VfsNodeVfsNode.make() to create the node if it does not exist.exists in interface VfsNodeexists in class AbstractVfsFilejava.io.IOException - if it can't tell for some reason.public long getLastModifiedMillis()
throws java.io.IOException
VfsFilegetLastModified().getMillis().getLastModifiedMillis in interface VfsFilegetLastModifiedMillis in interface VfsNodegetLastModifiedMillis in class AbstractVfsFilejava.io.IOExceptionpublic void make()
throws java.io.IOException
VfsNodemake in interface VfsNodemake in class AbstractVfsFilejava.io.IOException - if it can't.public void setLastModifiedMillis(long millis)
throws java.io.IOException
VfsFilesetLastModified(new DateAndTime(millis)).setLastModifiedMillis in interface VfsFilesetLastModifiedMillis in interface VfsNodesetLastModifiedMillis in class AbstractVfsFilejava.io.IOExceptionpublic long size()
throws java.io.IOException
size in interface VfsFilesize in class AbstractVfsFilejava.io.IOExceptionpublic void remove()
throws java.io.IOException
VfsFilejava.io.IOExceptionpublic java.net.URI getUri()
VfsNodepublic java.net.URL getUrl()
VfsNodepublic java.io.File toFile()
VfsNode