Examples of writeBytes()


Examples of com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryClient.writeBytes()

        OChannelBinaryClient network = null;
        try {
          network = beginRequest(OChannelBinaryProtocol.REQUEST_RECORD_CREATE);

          network.writeShort((short) iRid.clusterId);
          network.writeBytes(iContent);
          network.writeByte(iRecordType);

        } finally {
          endRequest(network);
        }
View Full Code Here

Examples of com.sun.faban.harness.agent.FileService.writeBytes()

            int i = in.read(buf);

            if(i > 0) {
                FileService outfp = fa.open(outFile, FileAgent.WRITE);
                while (i > 0) {
                    outfp.writeBytes(buf, 0, i);
                    i = in.read(buf);
                }
                outfp.close();
            }
            in.close();
View Full Code Here

Examples of com.sun.star.io.XOutputStream.writeBytes()

        try {
            //Decode and write the data to an temp stream
            byte[] oledata = Base64.decode(aBase64);
            m_RootStream = CreateTempFileStream(m_xMSF);
            XOutputStream xOutput = m_RootStream.getOutputStream();
            xOutput.writeBytes(oledata);
            xOutput.flush();
            //Get the input stream and seek to begin
            XInputStream xInput = m_RootStream.getInputStream();
            XSeekable xSeek = (XSeekable) UnoRuntime.queryInterface(XSeekable.class, xInput);
            xSeek.seek(0);
View Full Code Here

Examples of com.sun.star.io.XSequenceOutputStream.writeBytes()

           
            //write something to the stream
            byte pBytesOriginal[] = new byte [nBytesCnt];
            Random oRandom = new Random();
            oRandom.nextBytes (pBytesOriginal);
            xSeqOutStream.writeBytes (pBytesOriginal);
            byte pBytesWritten[] = xSeqOutStream.getWrittenBytes ();
            m_aTestHelper.Message ( "SeuenceOutputStream filled." );
           
            //create SequenceInputstream
            Object pArgs[] = new Object[1];
View Full Code Here

Examples of com.trolltech.qt.core.QDataStream.writeBytes()

              file.open(mode);
              QDataStream out = new QDataStream(file);
              Resource resBinary = conn.getNoteTable().noteResourceTable.getNoteResource(res.getGuid(), true);
          QByteArray binData = new QByteArray(resBinary.getData().getBody());
          resBinary = null;
              out.writeBytes(binData.toByteArray());
              file.close();
              PDFPreview pdfPreview = new PDFPreview();
          goodPreview = pdfPreview.setupPreview(file.fileName(), appl,0);
          if (goodPreview) {
            QDomElement span = doc.createElement("span");
View Full Code Here

Examples of com.zwl.util.zip.impl.ExtZipOutputStream.writeBytes()

      int remaining = (int)zipEntry.getEncryptedDataSize();
      while( remaining>0 ) {
        int len = (remaining>buffer.length) ? buffer.length : remaining;
        int read = raFile.readByteArray(buffer,len);
        decrypter.decrypt( buffer, read );
        zos.writeBytes( buffer, 0, read );
        remaining -= len;
      }
      zos.finish();

      byte[] storedMac = new byte[10];
View Full Code Here

Examples of dovetaildb.bytes.Bytes.writeBytes()

 
  public String getString() {
    try {
      Bytes term = terms[0];
      byte[] bytes = new byte[term.getLength()-1];
      term.writeBytes(1, bytes);
      return new String(bytes, "utf-8");
    } catch (UnsupportedEncodingException e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

Examples of io.airlift.slice.DynamicSliceOutput.writeBytes()

    }

    private static Slice createGreaterValue(Slice expectedValue, int offset, int length)
    {
        DynamicSliceOutput greaterOutput = new DynamicSliceOutput(length + 1);
        greaterOutput.writeBytes(expectedValue, offset, length);
        greaterOutput.writeByte('_');
        return greaterOutput.slice();
    }

    protected static Slice createExpectedValue(int length)
View Full Code Here

Examples of io.netty.buffer.ByteBuf.writeBytes()

    @Override
    public ByteTransferBuffer next() {
      try {
        ByteBuf byteBuf = PooledByteBufAllocator.DEFAULT.buffer(FSDelegation.this.buffer);
        if (this.set(byteBuf.writeBytes(this.input, byteBuf.capacity())).get() > 0) {
          this.readable.addAndGet(current.get());
        }
        this.queue.add(this.byteBuf = byteBuf);
        FSDelegation.this.resourceCounter.increment(FSDelegation.this.chunk);
        return this;
View Full Code Here

Examples of io.netty.buffer.ChannelBuffer.writeBytes()

                        }

                        if (result.bytesProduced() > 0) {
                            outNetBuf.flip();
                            msg = ChannelBuffers.buffer(outNetBuf.remaining());
                            msg.writeBytes(outNetBuf.array(), 0, msg.capacity());
                            outNetBuf.clear();

                            if (pendingWrite.outAppBuf.hasRemaining()) {
                                // pendingWrite's future shouldn't be notified if
                                // only partial data is written.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.