|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.sftp.SftpPacket
com.jscape.inet.sftp.packets.SshFxpOpen
public class SshFxpOpen
The SSH_FXP_OPEN packet.
Field Summary | |
---|---|
static int |
TYPE
The SFTP packet type |
Constructor Summary | |
---|---|
SshFxpOpen(java.lang.String path,
JFileOpenFlags flags,
JAcl.Mask accessType,
SftpFileAttributes attrs)
Creates a new packet instance. |
Method Summary | |
---|---|
SftpPacket |
accept(PacketDispatcher dispatcher)
The "backwards dispatching" support. |
JAcl.Mask |
getAccessType()
Obtains the file access type. |
SftpFileAttributes |
getAttrs()
Obtains the file attributes. |
java.lang.String |
getFileName()
Obtains the file name. |
JFileOpenFlags |
getFlags()
Obtains the file open flags. |
static SftpPacket |
readFrom(java.io.InputStream in,
java.lang.String charset)
Reads the packet from the stream. |
java.lang.String |
toString()
Provides the human-readable packet representation. |
void |
writeTo(java.io.OutputStream out,
java.lang.String charset)
Writes the current packet to the specified stream. |
Methods inherited from class com.jscape.inet.sftp.SftpPacket |
---|
getId, getType, readFrom, readFrom, setId, writeTo |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TYPE
Constructor Detail |
---|
public SshFxpOpen(java.lang.String path, JFileOpenFlags flags, JAcl.Mask accessType, SftpFileAttributes attrs)
path
- the file pathflags
- the open flagsaccessType
- the file access typeattrs
- the file attributesMethod Detail |
---|
public static SftpPacket readFrom(java.io.InputStream in, java.lang.String charset) throws java.io.IOException
in
- the source input stream
java.io.IOException
- if an I/O error occurspublic java.lang.String getFileName()
public JFileOpenFlags getFlags()
public JAcl.Mask getAccessType()
public SftpFileAttributes getAttrs()
public void writeTo(java.io.OutputStream out, java.lang.String charset) throws java.io.IOException
writeTo
in class SftpPacket
out
- the output stream
java.io.IOException
- if I/O error occuredpublic SftpPacket accept(PacketDispatcher dispatcher) throws java.io.IOException
accept
in interface Dispatchable
dispatcher
- the packet dispatcher
java.io.IOException
- if an I/O error occurspublic java.lang.String toString()
toString
in class java.lang.Object
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |