Class ScpAckInfo
java.lang.Object
org.apache.sshd.scp.common.helpers.ScpAckInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate final Stringstatic final intstatic final ScpAckInfoprivate final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLine()intstatic ScpAckInforeadAck(InputStream in, Charset cs, boolean canEof) <O extends OutputStream>
Ostatic <O extends OutputStream>
Ostatic <O extends OutputStream>
Ostatic voidsendOk(OutputStream out, Charset cs) SendsOKACK codestatic <O extends OutputStream>
OsendWarning(O out, Charset cs, String message) toString()voidvalidateCommandStatusCode(String command, Object location)
-
Field Details
-
OK
public static final int OK- See Also:
-
WARNING
public static final int WARNING- See Also:
-
ERROR
public static final int ERROR- See Also:
-
OK_ACK_INFO
-
statusCode
private final int statusCode -
line
-
-
Constructor Details
-
ScpAckInfo
public ScpAckInfo(int statusCode) -
ScpAckInfo
-
-
Method Details
-
getStatusCode
public int getStatusCode() -
getLine
-
send
- Throws:
IOException
-
validateCommandStatusCode
- Throws:
IOException
-
toString
-
readAck
- Throws:
IOException
-
sendOk
SendsOKACK code- Parameters:
out- The targetOutputStreamcs- TheCharsetto use to write the textual data- Throws:
IOException- If failed to send the ACK code
-
sendWarning
public static <O extends OutputStream> O sendWarning(O out, Charset cs, String message) throws IOException - Throws:
IOException
-
sendError
public static <O extends OutputStream> O sendError(O out, Charset cs, String message) throws IOException - Throws:
IOException
-
sendAck
public static <O extends OutputStream> O sendAck(O out, Charset cs, int level, String message) throws IOException - Throws:
IOException
-