Module jcifs

Class SmbPipeInputStream

All Implemented Interfaces:
Closeable, AutoCloseable

public class SmbPipeInputStream extends SmbFileInputStream
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 Details

    • ensureTreeConnected

      protected org.codelibs.jcifs.smb.impl.SmbTreeHandleImpl ensureTreeConnected() throws CIFSException
      Ensures that the tree connection is established.
      Returns:
      the tree handle implementation
      Throws:
      CIFSException - if a connection error occurs
    • ensureOpen

      protected org.codelibs.jcifs.smb.impl.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 class SmbFileInputStream
      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 interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class SmbFileInputStream