Class SftpFileTransferProgressOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public class SftpFileTransferProgressOutputStream
    extends java.io.FilterOutputStream
    • Field Detail

      • markerSize

        private final int markerSize
      • markerChar

        private final char markerChar
      • markersPerLine

        private final int markersPerLine
      • stdout

        private final java.lang.Appendable stdout
      • workBuf

        private final byte[] workBuf
      • byteCount

        private long byteCount
      • lastMarkOffset

        private long lastMarkOffset
      • curMarkersInLine

        private int curMarkersInLine
    • Constructor Detail

      • SftpFileTransferProgressOutputStream

        public SftpFileTransferProgressOutputStream​(java.io.OutputStream out,
                                                    java.lang.Appendable stdout)
      • SftpFileTransferProgressOutputStream

        public SftpFileTransferProgressOutputStream​(java.io.OutputStream out,
                                                    int markerSize,
                                                    char markerChar,
                                                    int markersPerLine,
                                                    java.lang.Appendable stdout)
    • Method Detail

      • getMarkerSize

        public int getMarkerSize()
      • getMarkerChar

        public char getMarkerChar()
      • getMarkersPerLine

        public int getMarkersPerLine()
      • getStdout

        public java.lang.Appendable getStdout()
      • write

        public void write​(int b)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • appendMarkers

        protected void appendMarkers​(int markersCount)
                              throws java.io.IOException
        Throws:
        java.io.IOException