public class UrlRepositoryItem extends AbstractRepositoryElement implements RepositoryContent
Modifier and Type | Field and Description |
---|---|
protected URL |
item |
protected String |
name |
parent
Constructor and Description |
---|
UrlRepositoryItem(RepositoryDirectory parent,
URL item,
String name) |
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
public UrlRepositoryItem(RepositoryDirectory parent, URL item, String name)
public String getName()
getName
in interface RepositoryElement
getName
in class AbstractRepositoryElement
public InputStream getContent() throws IOException
getContent
in interface RepositoryContent
IOException
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.