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, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParent, getPath, setParent
protected File item
public FileRepositoryItem(RepositoryDirectory parent, File item)
public String getName()
getName
in interface RepositoryElement
getName
in class AbstractRepositoryElement
public InputStream getContent() throws FileNotFoundException
getContent
in interface RepositoryContent
FileNotFoundException
public Date getLastModified()
getLastModified
in interface RepositoryContent
public Long getSize()
getSize
in interface RepositoryContent
public String getDescription()
getDescription
in interface RepositoryElement
public String getContentType()
getContentType
in interface RepositoryContent
Copyright © 2016–2022. All rights reserved.