Package jcifs
Interface SmbPipeHandle
-
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
SmbPipeHandleInternal
public interface SmbPipeHandle extends AutoCloseable
Handle to an open named pipe- Author:
- mbechler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
InputStream
getInput()
OutputStream
getOutput()
SmbPipeResource
getPipe()
boolean
isOpen()
boolean
isStale()
<T extends SmbPipeHandle>
Tunwrap(Class<T> type)
-
-
-
Method Detail
-
getPipe
SmbPipeResource getPipe()
- Returns:
- the pipe
-
getInput
InputStream getInput() throws CIFSException
- Returns:
- this pipe's input stream
- Throws:
CIFSException
-
getOutput
OutputStream getOutput() throws CIFSException
- Returns:
- this pipe's output stream
- Throws:
CIFSException
-
close
void close() throws CIFSException
- Specified by:
close
in interfaceAutoCloseable
- Throws:
CIFSException
- See Also:
AutoCloseable.close()
-
isOpen
boolean isOpen()
- Returns:
- whether the FD is open and valid
-
isStale
boolean isStale()
- Returns:
- whether the FD was previously open but became invalid
-
unwrap
<T extends SmbPipeHandle> T unwrap(Class<T> type)
- Parameters:
type
-- Returns:
- unwrapped instance
-
-