|
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.packets.SftpName
public class SftpName
The SFTP NAME abstraction. This class is used to combine remote file attributes while directory listing.
Constructor Summary | |
---|---|
SftpName(byte[] fileName,
byte[] longName,
SftpFileAttributes attrs)
Creates a new file name instance. |
Method Summary | |
---|---|
SftpFileAttributes |
getAttrs()
Obtains the file attributes. |
byte[] |
getFileName()
Obtains the file name. |
java.lang.String |
getFileName(java.lang.String charset)
Obtains the file name. |
byte[] |
getLongName()
Obtains the long file name. |
static SftpName |
readFrom(java.io.InputStream in,
java.lang.String charset)
Reads the file name from the stream. |
java.lang.String |
toString()
|
void |
writeTo(java.io.OutputStream out,
java.lang.String charset)
Writes the current file name to the stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SftpName(byte[] fileName, byte[] longName, SftpFileAttributes attrs)
fileName
- the file namelongName
- the long file nameattrs
- the file attributesMethod Detail |
---|
public static SftpName 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 byte[] getFileName()
public java.lang.String getFileName(java.lang.String charset)
charset
- charset name
public byte[] getLongName()
public SftpFileAttributes getAttrs()
public void writeTo(java.io.OutputStream out, java.lang.String charset) throws java.io.IOException
out
- the destination stream
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 |