|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.ram.common.data.Artifact
com.ibm.ram.client.RAMArtifact
com.ibm.ram.client.LocalFileArtifact
public class LocalFileArtifact
Represents the artifact of an asset that has its contents stored locally as a file.
| Field Summary |
|---|
| Fields inherited from class com.ibm.ram.common.data.Artifact |
|---|
FILE_DELIM, TYPE_FILE, TYPE_FOLDER, TYPE_URL |
| Constructor Summary | |
|---|---|
LocalFileArtifact(java.io.File file)
|
|
| Method Summary | |
|---|---|
java.io.InputStream |
getContents()
Returns the files content as an input stream TODO should we use an InputStreamInformation object here |
long |
getCreationDate()
|
java.io.File |
getFile()
Return the underlying File object |
long |
getSize()
The size of the artifact. |
| Methods inherited from class com.ibm.ram.client.RAMArtifact |
|---|
downloadContents, getAsset, getLabel, getMimeType, getName, getPath, getReference, getType, setAsset, setCreationDate, setLabel, setMimeType, setName, setPath, setReference, setSize, setType |
| Methods inherited from class com.ibm.ram.common.data.Artifact |
|---|
getChecksum, setChecksum, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LocalFileArtifact(java.io.File file)
asset - A asset to the repository this asset lived in.| Method Detail |
|---|
public java.io.InputStream getContents()
throws RAMRuntimeException
RAMRuntimeExceptionpublic java.io.File getFile()
public long getCreationDate()
getCreationDate in class RAMArtifactpublic long getSize()
Artifact
getSize in class RAMArtifact
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||