public class FileRepositoryItem extends AbstractRepositoryElement implements RepositoryContent
| Modifier and Type | Field and Description |
|---|---|
protected File |
item |
parent| Constructor and Description |
|---|
FileRepositoryItem(RepositoryDirectory parent,
File item) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent() |
String |
getContentType() |
String |
getDescription() |
Date |
getLastModified() |
String |
getName() |
Long |
getSize() |
getParent, getPath, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParent, getPath, setParentprotected File item
public FileRepositoryItem(RepositoryDirectory parent, File item)
public String getName()
getName in interface RepositoryElementgetName in class AbstractRepositoryElementpublic InputStream getContent() throws FileNotFoundException
getContent in interface RepositoryContentFileNotFoundExceptionpublic Date getLastModified()
getLastModified in interface RepositoryContentpublic Long getSize()
getSize in interface RepositoryContentpublic String getDescription()
getDescription in interface RepositoryElementpublic String getContentType()
getContentType in interface RepositoryContentCopyright © 2016–2022. All rights reserved.