de.deepamehta.plugins.files
Class DirectoryListing.FileItem
java.lang.Object
de.deepamehta.plugins.files.DirectoryListing.FileItem
- All Implemented Interfaces:
- JSONEnabled
- Enclosing class:
- DirectoryListing
public class DirectoryListing.FileItem
- extends Object
- implements JSONEnabled
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
kind
ItemKind kind
name
String name
path
String path
size
long size
type
String type
DirectoryListing.FileItem
DirectoryListing.FileItem(String name,
String path)
- Constructs a DIRECTORY item.
DirectoryListing.FileItem
DirectoryListing.FileItem(String name,
String path,
long size,
String type)
- Constructs a FILE item.
getItemKind
public ItemKind getItemKind()
getName
public String getName()
getPath
public String getPath()
getSize
public long getSize()
getMediaType
public String getMediaType()
truncate
private String truncate(String path)
toJSON
public JSONObject toJSON()
- Specified by:
toJSON
in interface JSONEnabled
Copyright © 2015. All Rights Reserved.