Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 25th, 2011  |  syntax: None  |  size: 0.55 KB  |  views: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. 103         _write(b, off, len);
  2. 104     }
  3. 105
  4. 106     /**
  5. 107      * {@link #write(byte[])} without the close check.
  6. 108      */
  7. 109     private synchronized void _write(byte[] b, int off, int len) throws IOException {
  8. 110         if(channel==null) {
  9. 111             if(tmp==null)
  10. 112                 tmp = new ByteArrayOutputStream();
  11. 113             tmp.write(b,off,len);
  12. 114         } else {
  13. 115             while (len>0) {
  14. 116                 int sendable;
  15. 117                 try {
  16. 118                     sendable = Math.min(window.get(),len);
clone this paste RAW Paste Data