java.lang.Object
java.io.OutputStream
org.codelibs.jcifs.smb.impl.SmbFileOutputStream
org.codelibs.jcifs.smb.impl.SmbPipeOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Output stream for writing to SMB named pipes.
This class provides a stream-based interface for writing
data to SMB named pipes over the network.
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this output stream and releases any system resources associated with it.protected org.codelibs.jcifs.smb.impl.SmbFileHandleImplEnsures that the file handle is open and returns it.protected org.codelibs.jcifs.smb.impl.SmbTreeHandleImplEnsures that the tree connection is established.protected org.codelibs.jcifs.smb.impl.SmbPipeHandleImplGets the pipe handle implementation for this output stream.booleanisOpen()Tests whether the output stream is currently open.Methods inherited from class org.codelibs.jcifs.smb.impl.SmbFileOutputStream
init, open, write, write, write, writeDirectMethods inherited from class java.io.OutputStream
flush, nullOutputStream
-
Method Details
-
isOpen
public boolean isOpen()Tests whether the output stream is currently open.- Overrides:
isOpenin classSmbFileOutputStream- Returns:
- whether the stream is open
- See Also:
-
ensureTreeConnected
Description copied from class:SmbFileOutputStreamEnsures that the tree connection is established.- Overrides:
ensureTreeConnectedin classSmbFileOutputStream- Returns:
- the tree handle
- Throws:
CIFSException- if an error occurs connecting to the tree
-
ensureOpen
Description copied from class:SmbFileOutputStreamEnsures that the file handle is open and returns it.- Overrides:
ensureOpenin classSmbFileOutputStream- Returns:
- the open file handle
- Throws:
CIFSException- if an error occurs opening the file
-
getHandle
protected org.codelibs.jcifs.smb.impl.SmbPipeHandleImpl getHandle()Gets the pipe handle implementation for this output stream.- Returns:
- the handle
-
close
public void close()Description copied from class:SmbFileOutputStreamCloses this output stream and releases any system resources associated with it.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classSmbFileOutputStream
-