uk.ac.mrc.hgmp.embreo.filemgr
Class EmbreoLocalGet
java.lang.Object
|
+--uk.ac.mrc.hgmp.embreo.filemgr.EmbreoLocalGet
- public class EmbreoLocalGet
- extends java.lang.Object
Method Summary |
byte[] |
bytecontents()
The contenets, explicitly as a byte[] array |
java.lang.Object |
contents()
the contents of the file |
java.lang.String |
getStatus()
The status of the request |
java.lang.String |
getStatusMsg()
A status message |
java.lang.String |
stringcontents()
The contents, as a String |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmbreoLocalGet
public EmbreoLocalGet(EmbreoParams mysettings,
java.lang.String filename)
- Read a file
contents
public java.lang.Object contents()
- the contents of the file
bytecontents
public byte[] bytecontents()
- The contenets, explicitly as a byte[] array
stringcontents
public java.lang.String stringcontents()
- The contents, as a String
getStatus
public java.lang.String getStatus()
- The status of the request
- Returns:
- String 0 for success
Anything else for failure
getStatusMsg
public java.lang.String getStatusMsg()
- A status message
- Returns:
- A String explaining what hapened. Usually used to display
an error message in the event of a failure