eXo JCR :: Component :: FTP Service 1.15.0-CR2

org.exoplatform.services.ftp.data
Class FtpSlowOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.exoplatform.services.ftp.data.FtpSlowOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class FtpSlowOutputStream
extends OutputStream

Created by The eXo Platform SAS Author : Vitaly Guly

Version:
$Id: $

Constructor Summary
FtpSlowOutputStream(OutputStream nativeOutputStream, int bytesPerSec)
           
 
Method Summary
 void close()
           
 void flush()
           
protected  void tryWaiting()
           
 void write(byte[] dataBytes)
           
 void write(byte[] dataBytes, int offset, int len)
           
 void write(int dataByte)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FtpSlowOutputStream

public FtpSlowOutputStream(OutputStream nativeOutputStream,
                           int bytesPerSec)
Method Detail

tryWaiting

protected void tryWaiting()

write

public void write(int dataByte)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] dataBytes)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] dataBytes,
                  int offset,
                  int len)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException

eXo JCR :: Component :: FTP Service 1.15.0-CR2

Copyright © 2012 eXo Platform SAS. All Rights Reserved.