public class GetFileRsp extends Message
Constructor and Description |
---|
GetFileRsp(GetFileReq inReplyTo)
Create a response to the ShellGetFileReq.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getContents()
Get the contents of the file.
|
java.lang.String |
getFilename()
Get the name of the file/directory.
|
long |
getOffset()
Get the start location in file.
|
boolean |
isDirectory()
Checks if the file being returned is a directory.
|
void |
setContents(byte[] contents)
Set the contents of the file.
|
void |
setDirectory(boolean dir)
Marks the file being returned as an ordinary file or directory.
|
void |
setFilename(java.lang.String filename)
Set the name of the file/directory.
|
void |
setOffset(long ofs)
Set the start location in file.
|
getInReplyTo, getJsonCache, getMessageID, getPerformative, getRecipient, getSender, getSentAt, setInReplyTo, setJsonCache, setMessageID, setPerformative, setRecipient, setSender, setSentAt, toString
public GetFileRsp(GetFileReq inReplyTo)
inReplyTo
- message to which this is a response.public java.lang.String getFilename()
public void setFilename(java.lang.String filename)
filename
- name of the file/directory.public byte[] getContents()
public void setContents(byte[] contents)
contents
- the contents of the file.public boolean isDirectory()
public void setDirectory(boolean dir)
dir
- true for directory, false for ordinary file.public long getOffset()
public void setOffset(long ofs)
ofs
- start location in file.