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 SmbFileHandle
ensureOpen()
SmbTreeHandleInternal
ensureTreeConnected()
SmbPipeInputStream
getInput()
SmbPipeOutputStream
getOutput()
int
getPipeType()
byte[]
getSessionKey()
int
recv(byte[] buf, int off, int length)
void
send(byte[] buf, int off, int length)
int
sendrecv(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:
getInput
in interfaceSmbPipeHandle
- Returns:
- this pipe's input stream
- Throws:
SmbException
CIFSException
-
getOutput
SmbPipeOutputStream getOutput() throws CIFSException
- Specified by:
getOutput
in interfaceSmbPipeHandle
- Returns:
- this pipe's output stream
- Throws:
SmbException
CIFSException
-
ensureTreeConnected
SmbTreeHandleInternal ensureTreeConnected() throws CIFSException
- Returns:
- tree connection
- Throws:
SmbException
CIFSException
-
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:
CIFSException
IOException
-
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
-
-