Class Share

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Direct Known Subclasses:
    DiskShare, PipeShare, PrinterShare

    public class Share
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException
      • isConnected

        public boolean isConnected()
      • getSmbPath

        public SmbPath getSmbPath()
      • getCreateStatusHandler

        protected StatusHandler getCreateStatusHandler()
      • ioctl

        public byte[] ioctl​(long ctlCode,
                            boolean isFsCtl,
                            byte[] inData)
        Sends a control code directly to a specified device driver, causing the corresponding device to perform the corresponding operation.
        Parameters:
        ctlCode - the control code
        isFsCtl - true if the control code is an FSCTL; false if it is an IOCTL
        inData - the control code dependent input data
        Returns:
        the response data or null if the control code did not produce a response
      • ioctl

        public byte[] ioctl​(long ctlCode,
                            boolean isFsCtl,
                            byte[] inData,
                            int inOffset,
                            int inLength)
        Sends a control code directly to a specified device driver, causing the corresponding device to perform the corresponding operation.
        Parameters:
        ctlCode - the control code
        isFsCtl - true if the control code is an FSCTL; false if it is an IOCTL
        inData - the control code dependent input data
        inOffset - the offset in inData where the input data starts
        inLength - the number of bytes from inData to send, starting at offset
        Returns:
        the response data or null if the control code did not produce a response
      • ioctl

        public int ioctl​(long ctlCode,
                         boolean isFsCtl,
                         byte[] inData,
                         int inOffset,
                         int inLength,
                         byte[] outData,
                         int outOffset,
                         int outLength)
        Sends a control code directly to a specified device driver, causing the corresponding device to perform the corresponding operation.
        Parameters:
        ctlCode - the control code
        isFsCtl - true if the control code is an FSCTL; false if it is an IOCTL
        inData - the control code dependent input data
        inOffset - the offset in inData where the input data starts
        inLength - the number of bytes from inData to send, starting at inOffset
        outData - the buffer where the response data should be written
        outOffset - the offset in outData where the output data should be written
        outLength - the maximum amount of data to write in outData, starting at outOffset
        Returns:
        the number of bytes written to outData
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object