|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecteTextReader.OEB.OEBItem
public class OEBItem
This class encapsulates information about a single resource that is part of the package file. It also contains a mechanism to allow a reading device to identify a replacement resource if it is unable to render the media-type of this resource
| Field Summary | |
|---|---|
private java.lang.String |
fallbackID
|
private java.lang.String |
href
|
private java.lang.String |
ID
|
private java.lang.String |
mediaType
|
private java.lang.String |
urlBase
|
| Constructor Summary | |
|---|---|
OEBItem(java.lang.String ID,
java.lang.String fallbackID,
java.lang.String mediaType,
java.lang.String urlBase,
java.lang.String href)
Constructs an OEBItem object from the given parameters |
|
| Method Summary | |
|---|---|
java.lang.String |
getFallbackID()
Retrieves the unique identifier of another resource that should be used if the reading agent is not capable of handling the media type of this resource |
java.lang.String |
getHref()
Retrieves the fully-specified URL for this resource. |
java.lang.String |
getID()
Retrieves the unique identifier of this resource |
java.lang.String |
getMediaType()
Retrieves the mime type of this resource as specified by the package file |
java.lang.String |
getRelativeHref()
Retrieves the value of the href attribute in the package file, without the urlBase prepended to it |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String ID
private java.lang.String fallbackID
private java.lang.String mediaType
private java.lang.String href
private java.lang.String urlBase
| Constructor Detail |
|---|
public OEBItem(java.lang.String ID,
java.lang.String fallbackID,
java.lang.String mediaType,
java.lang.String urlBase,
java.lang.String href)
ID - the resource's unique identifierfallbackID - the ID of another resource in the package that should
be used if the reading agent cannot handle the media type of this
resourcemediaType - the mime-type of this resourceurlBase - the location that should be prepended to the
href attribute to load the documenthref - the relative URL of this resource contained in
the package file| Method Detail |
|---|
public java.lang.String getID()
public java.lang.String getFallbackID()
public java.lang.String getMediaType()
public java.lang.String getHref()
public java.lang.String getRelativeHref()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||