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 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 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 Thread
activeCount, checkAccess, clone, 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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, 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
-
handle
- Throws:
SFTPException
-
expectResponseTo
-