Class FtpFileObject.FtpInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    FtpFileObject

    class FtpFileObject.FtpInputStream
    extends MonitorInputStream
    An InputStream that monitors for end-of-file.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private FtpClient client  
      • Fields inherited from class java.io.BufferedInputStream

        buf, count, marklimit, markpos, pos
      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Detail

      • FtpInputStream

        public FtpInputStream​(FtpClient client,
                              java.io.InputStream in)
      • FtpInputStream

        public FtpInputStream​(FtpClient client,
                              java.io.InputStream in,
                              int bufferSize)
    • Method Detail

      • abort

        void abort()
            throws java.io.IOException
        Throws:
        java.io.IOException
      • isTransferAbortedOkReplyCode

        private boolean isTransferAbortedOkReplyCode()
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • onClose

        protected void onClose()
                        throws java.io.IOException
        Called after the stream has been closed.
        Overrides:
        onClose in class MonitorInputStream
        Throws:
        java.io.IOException - if an error occurs.