- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
SmbPipeHandleInternal
Handle to an open named pipe
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getInput()Gets the input stream for reading from this pipe.Gets the output stream for writing to this pipe.getPipe()Gets the pipe resource associated with this handle.booleanisOpen()Tests whether this file descriptor is open and valid.booleanisStale()Tests whether this file descriptor was previously open but has become invalid.<T extends SmbPipeHandle>
TUnwraps this handle to the specified type.
-
Method Details
-
getPipe
SmbPipeResource getPipe()Gets the pipe resource associated with this handle.- Returns:
- the pipe
-
getInput
Gets the input stream for reading from this pipe.- Returns:
- this pipe's input stream
- Throws:
CIFSException- if an error occurs getting the input stream
-
getOutput
Gets the output stream for writing to this pipe.- Returns:
- this pipe's output stream
- Throws:
CIFSException- if an error occurs getting the output stream
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
CIFSException- if an error occurs closing the handle- See Also:
-
isOpen
boolean isOpen()Tests whether this file descriptor is open and valid.- Returns:
- whether the FD is open and valid
-
isStale
boolean isStale()Tests whether this file descriptor was previously open but has become invalid.- Returns:
- whether the FD was previously open but became invalid
-
unwrap
Unwraps this handle to the specified type.- Type Parameters:
T- the type to unwrap to- Parameters:
type- the class of the type to unwrap to- Returns:
- unwrapped instance
-