Package net.schmizz.sshj.sftp
Class PacketReader
java.lang.Object
java.lang.Thread
net.schmizz.sshj.sftp.PacketReader
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SFTPEngineprivate final InputStreamprivate final byte[]private final org.slf4j.LoggerLoggerprivate final SFTPPacket<Response> private final Map<Long, Promise<Response, SFTPException>> Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexpectResponseTo(long requestId) private intvoidhandle()private voidreadIntoBuffer(byte[] buf, int off, int len) voidrun()Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
log
private final org.slf4j.Logger logLogger -
in
-
promises
-
packet
-
lenBuf
private final byte[] lenBuf -
engine
-
-
Constructor Details
-
PacketReader
-
-
Method Details
-
readIntoBuffer
- Throws:
IOException
-
getPacketLength
- Throws:
IOException
-
readPacket
- Throws:
IOException
-
run
public void run() -
handle
- Throws:
SFTPException
-
expectResponseTo
-