com.github.stephenc.javaisotools.loopfs.api
Interface FileEntry


public interface FileEntry

An entry in a loop-fs file system. Paths within the file system are unix-like ("/" separated hierarchy of folders and files).


Method Summary
 long getLastModifiedTime()
          Returns the last modified time for this entry, in milliseconds.
 String getName()
          Returns the entry name (the last entry of the path).
 String getPath()
          Returns the relative entry path.
 long getSize()
          Returns the size, in bytes, of the data represented by this entry.
 boolean isDirectory()
          Returns whether this entry represents a directory.
 

Method Detail

getName

String getName()
Returns the entry name (the last entry of the path).

Returns:
the entry name

getPath

String getPath()
Returns the relative entry path. The path does NOT begin with any separators.

Returns:
the entry path

getLastModifiedTime

long getLastModifiedTime()
Returns the last modified time for this entry, in milliseconds.

Returns:
the last modified time

isDirectory

boolean isDirectory()
Returns whether this entry represents a directory.

Returns:
true if this entry represents a directory, otherwise false.

getSize

long getSize()
Returns the size, in bytes, of the data represented by this entry.

Returns:
the entry size


Copyright © 2013. All Rights Reserved.