|
3.1.2: 2012-07-31 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.util.uri.UriMetadata
public class UriMetadata
Holds metadata about the data referenced by given URI. All metadata information is optional and clients should be prepared to handle it.
Field Summary | |
---|---|
private String |
charset
|
private Date |
lastModified
|
private Long |
length
|
private String |
md5
|
private String |
mimeType
|
private URI |
uri
|
Constructor Summary | |
---|---|
UriMetadata(URI uri)
Create an empty metadata object for the given URI. |
Method Summary | |
---|---|
String |
getCharacterSet()
Get the character set used by the resource. |
Date |
getLastModified()
Get the date and time the resource was last modified. |
Long |
getLength()
Get the length in bytes of the resource. |
String |
getMd5()
Get the MD5 checksum of the resource. |
String |
getMimeType()
Get the MIME type of the resource. |
void |
setCharacterSet(String charset)
|
void |
setLastModified(Date lastModified)
|
void |
setLength(Long length)
|
void |
setMd5(String md5)
|
void |
setMimeType(String mimeType)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final URI uri
private Long length
private Date lastModified
private String mimeType
private String charset
private String md5
Constructor Detail |
---|
public UriMetadata(URI uri)
uri
- The URI that defines the referenced resourceMethod Detail |
---|
public Long getLength()
public void setLength(Long length)
public Date getLastModified()
public void setLastModified(Date lastModified)
public String getMimeType()
public void setMimeType(String mimeType)
public String getCharacterSet()
public void setCharacterSet(String charset)
public String getMd5()
public void setMd5(String md5)
|
3.1.2: 2012-07-31 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |