Package jcifs.smb
Class SmbPipeInputStream
- java.lang.Object
-
- java.io.InputStream
-
- jcifs.smb.SmbFileInputStream
-
- jcifs.smb.SmbPipeInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class SmbPipeInputStream extends SmbFileInputStream
- Author:
- mbechler
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
available()
This stream class is unbuffered.void
close()
Closes this input stream and releases any system resources associated with the stream.protected jcifs.smb.SmbFileHandleImpl
ensureOpen()
protected jcifs.smb.SmbTreeHandleImpl
ensureTreeConnected()
-
Methods inherited from class jcifs.smb.SmbFileInputStream
open, read, read, read, readDirect, seToIoe, skip
-
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, transferTo
-
-
-
-
Method Detail
-
ensureTreeConnected
protected jcifs.smb.SmbTreeHandleImpl ensureTreeConnected() throws CIFSException
- Throws:
CIFSException
-
ensureOpen
protected jcifs.smb.SmbFileHandleImpl ensureOpen() throws CIFSException
- Throws:
CIFSException
-
available
public int available() throws IOException
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:
available
in classSmbFileInputStream
- Throws:
IOException
-
close
public void close()
Description copied from class:SmbFileInputStream
Closes this input stream and releases any system resources associated with the stream.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classSmbFileInputStream
-
-