public abstract class File extends Object
Modifier and Type | Method and Description |
---|---|
void |
deleteAttribute(String view,
String attribute)
Deletes the given attribute from the given view.
|
Object |
getAttribute(String view,
String attribute)
Gets the value of the given attribute in the given view.
|
com.google.common.collect.ImmutableSet<String> |
getAttributeNames(String view)
Returns the names of the attributes contained in the given attribute view in the file's
attributes table.
|
long |
getCreationTime()
Gets the creation time of the file.
|
long |
getLastAccessTime()
Gets the last access time of the file.
|
long |
getLastModifiedTime()
Gets the last modified time of the file.
|
int |
id()
Returns the ID of this file.
|
boolean |
isDirectory()
Returns whether or not this file is a directory.
|
boolean |
isRegularFile()
Returns whether or not this file is a regular file.
|
boolean |
isSymbolicLink()
Returns whether or not this file is a symbolic link.
|
int |
links()
Returns the current count of links to this file.
|
void |
setAttribute(String view,
String attribute,
Object value)
Sets the given attribute in the given view to the given value.
|
long |
size()
Returns the size, in bytes, of this file's content.
|
String |
toString() |
public int id()
public long size()
public final boolean isDirectory()
public final boolean isRegularFile()
public final boolean isSymbolicLink()
public final int links()
public final long getCreationTime()
public final long getLastAccessTime()
public final long getLastModifiedTime()
public final com.google.common.collect.ImmutableSet<String> getAttributeNames(String view)
@Nullable public final Object getAttribute(String view, String attribute)
public final void setAttribute(String view, String attribute, Object value)
public final void deleteAttribute(String view, String attribute)
Copyright © 2013–2018 Google Inc.. All rights reserved.