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 intavailable()This stream class is unbuffered.voidclose()Closes this input stream and releases any system resources associated with the stream.protected jcifs.smb.SmbFileHandleImplensureOpen()protected jcifs.smb.SmbTreeHandleImplensureTreeConnected()-
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 IOExceptionThis 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
-
-