java.lang.Object
java.io.InputStream
org.codelibs.jcifs.smb.impl.SmbFileInputStream
org.codelibs.jcifs.smb.impl.SmbPipeInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Input stream for reading from SMB named pipes.
This class provides a stream-based interface for reading
data from SMB named pipes over the network.
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionintThis stream class is unbuffered.voidclose()Closes this input stream and releases any system resources associated with the stream.protected org.codelibs.jcifs.smb.impl.SmbFileHandleImplprotected org.codelibs.jcifs.smb.impl.SmbTreeHandleImplEnsures that the tree connection is established.Methods inherited from class org.codelibs.jcifs.smb.impl.SmbFileInputStream
open, read, read, read, readDirect, seToIoe, skipMethods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Method Details
-
ensureTreeConnected
Ensures that the tree connection is established.- Returns:
- the tree handle implementation
- Throws:
CIFSException- if a connection error occurs
-
ensureOpen
- Throws:
CIFSException
-
available
This stream class is unbuffered. Therefore this method will always return 0 for streams connected to regular files. However, a stream created from a Named Pipe this method will query the server using a "peek named pipe" operation and return the number of available bytes on the server.- Overrides:
availablein classSmbFileInputStream- Throws:
IOException
-
close
public void close()Description copied from class:SmbFileInputStreamCloses this input stream and releases any system resources associated with the stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classSmbFileInputStream
-