public class Reference extends Object
A reference stores the original item reference, and also the item's data store reference, which describes its location within the data store.
Modifier and Type | Field and Description |
---|---|
static String |
STREAM_REFERENCE_DELIMITER |
Constructor and Description |
---|
Reference()
Default constructor
|
Reference(Reference r)
Copy Constructor
|
Reference(String origRef,
String dataRef,
long size)
Constructs a new Reference with the specified parameters.
|
Reference(String origRef,
String dataRef,
long size,
org.apache.tika.mime.MimeType mime)
Constructs a new Reference with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
getDataStoreReference() |
long |
getFileSize() |
org.apache.tika.mime.MimeType |
getMimeType() |
String |
getOrigReference() |
void |
setDataStoreReference(String dataStoreReference) |
void |
setFileSize(long fileSize) |
void |
setMimeType(org.apache.tika.mime.MimeType mime) |
void |
setMimeType(String name) |
void |
setOrigReference(String origReference) |
String |
toString() |
public static String STREAM_REFERENCE_DELIMITER
public Reference(Reference r)
Copy Constructor
r
- The Reference object to copypublic Reference()
Default constructor
public Reference(String origRef, String dataRef, long size)
Constructs a new Reference with the specified parameters.
origRef
- The item's original location.dataRef
- The item's location within the data store.size
- The size of the file that this reference refers to.public Reference(String origRef, String dataRef, long size, org.apache.tika.mime.MimeType mime)
Constructs a new Reference with the specified parameters. In particular, a MimeType object is explicitly supplied. This object represents the mime-type of the item this reference refers to
origRef
- The item's original location.dataRef
- The item's location within the data store.size
- The size of the file that this reference refers to.mime
- A MimeType object representing the mime-type of the itempublic String getDataStoreReference()
public void setDataStoreReference(String dataStoreReference)
dataStoreReference
- The dataStoreReference to set.public String getOrigReference()
public void setOrigReference(String origReference)
origReference
- The origReference to set.public long getFileSize()
public void setFileSize(long fileSize)
fileSize
- The fileSize to set.public org.apache.tika.mime.MimeType getMimeType()
public void setMimeType(org.apache.tika.mime.MimeType mime)
mime
- the MimeType object to set for this referencepublic void setMimeType(String name)
name
- the String name of the mimetype of this referenceCopyright © 1999–2017 Apache OODT. All rights reserved.