Пример #1
0
 public void run()
 {
     java.io.OutputStream os = this.client.getOutputStream();
     os.write("Hello JavApi User".getBytes());
     os.flush();
     client.close();
 }
Пример #2
0
 /**
  * Flushes this output stream and forces any buffered output bytes
  * to be written out to the stream.
  *
  * @exception  IOException  if an I/O error occurs.
  */
 public override void flush() //throws IOException
 {
     if (outJ != null)
     {
         outJ.flush();
     }
 }
Пример #3
0
        /**
         * Write a TarBuffer block to the archive.
         */
        private void writeBlock() //throws IOException
        {
            if (outStream == null)
            {
                throw new java.io.IOException("writing to an input buffer");
            }

            outStream.write(blockBuffer, 0, blockSize);
            outStream.flush();

            currRecIdx = 0;
            currBlkIdx++;
            java.util.Arrays <byte> .fill(blockBuffer, (byte)0);
        }
Пример #4
0
 public override void flush()  //throws IOException {
 {
     wrapped.flush();
 }
Пример #5
0
 // used to be implemented via FilterOutputStream
 public override void flush() //throws IOException
 {
     outJ.flush();
 }