Package jcifs.smb
Interface SmbPipeHandleInternal
-
- All Superinterfaces:
AutoCloseable,SmbPipeHandle
public interface SmbPipeHandleInternal extends SmbPipeHandle
- Author:
- mbechler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SmbFileHandleensureOpen()SmbTreeHandleInternalensureTreeConnected()SmbPipeInputStreamgetInput()SmbPipeOutputStreamgetOutput()intgetPipeType()byte[]getSessionKey()intrecv(byte[] buf, int off, int length)voidsend(byte[] buf, int off, int length)intsendrecv(byte[] buf, int off, int length, byte[] inB, int maxRecvCnt)
-
-
-
Method Detail
-
getPipeType
int getPipeType()
- Returns:
- the pipe type
-
getSessionKey
byte[] getSessionKey() throws CIFSException- Returns:
- session key of the underlying smb session
- Throws:
CIFSException
-
getInput
SmbPipeInputStream getInput() throws CIFSException
- Specified by:
getInputin interfaceSmbPipeHandle- Returns:
- this pipe's input stream
- Throws:
SmbExceptionCIFSException
-
getOutput
SmbPipeOutputStream getOutput() throws CIFSException
- Specified by:
getOutputin interfaceSmbPipeHandle- Returns:
- this pipe's output stream
- Throws:
SmbExceptionCIFSException
-
ensureTreeConnected
SmbTreeHandleInternal ensureTreeConnected() throws CIFSException
- Returns:
- tree connection
- Throws:
SmbExceptionCIFSException
-
ensureOpen
SmbFileHandle ensureOpen() throws CIFSException
- Returns:
- file handle
- Throws:
CIFSException
-
recv
int recv(byte[] buf, int off, int length) throws IOException- Parameters:
buf-off-length-direct-- Returns:
- received bytes
- Throws:
CIFSExceptionIOException
-
send
void send(byte[] buf, int off, int length) throws IOException- Parameters:
buf-off-length-direct-- Throws:
IOException
-
sendrecv
int sendrecv(byte[] buf, int off, int length, byte[] inB, int maxRecvCnt) throws IOException- Parameters:
buf-off-length-inB-maxRecvCnt-- Returns:
- len
- Throws:
IOException
-
-