Examples of writeData()


Examples of com.itextpdf.text.pdf.codec.PngWriter.writeData()

        png.writeHeader(width, height, pngBitDepth, pngColorType);
        if (icc != null)
            png.writeIccProfile(icc);
        if (palette != null)
            png.writePalette(palette);
        png.writeData(streamBytes, stride);
        png.writeEnd();
        fileType = TYPE_PNG;
        return ms.toByteArray();
    }
View Full Code Here

Examples of com.linkedin.helix.manager.zk.ZkClient.writeData()

        {
          Thread.sleep(3000);
          final ZkClient zkClient = new ZkClient(ZK_ADDR);
          zkClient.setZkSerializer(new ZNRecordSerializer());
          zkClient.createPersistent(pathChild1, true);
          zkClient.writeData(pathChild1, record);
        }
        catch (InterruptedException e)
        {
          // TODO Auto-generated catch block
          e.printStackTrace();
View Full Code Here

Examples of com.mysql.cluster.ndbj.NdbBlob.writeData()

      ndbDATxn.execute(ExecType.NoCommit, AbortOption.AbortOnError, true);
      Set<Map.Entry<NdbBlob, byte[]>> blobEntrySet = blobMap.entrySet();
      for (Map.Entry blobEntry : blobEntrySet) {
        NdbBlob blob = (NdbBlob) blobEntry.getKey();
        byte[] blobBytes = (byte[]) blobEntry.getValue();
        blob.writeData(blobBytes);
      }
    }

    // Update dn2id table.
    NdbTransaction ndbTxn = txn.getNdbTransaction();
View Full Code Here

Examples of com.ovea.jetty.session.serializer.jboss.serial.persister.Persister.writeData()

    }

    public void writeObject(JBossSeralizationOutputInterface output, ObjectsCache cache, ClassMetaData metadata, Object obj) throws IOException {
        Persister persister = PersistResolver.resolvePersister(obj, metadata);
        output.writeByte(persister.getId());
        persister.writeData(metadata, cache.getOutput(), obj, cache.getSubstitution());
    }

    public Object readObjectSpecialCase(JBossSeralizationInputInterface input, ObjectsCache cache, byte byteIdentify) throws IOException {
        return input.readImmutable(byteIdentify, cache);
    }
View Full Code Here

Examples of com.sshtools.j2ssh.util.SimpleASNWriter.writeData()

                r.write(signature, 0, 20);
            } else {
                r.write(signature, 0, 20);
            }

            asn.writeData(r.toByteArray());
            asn.writeByte(0x02);

            if (((signature[20] & 0x80) == 0x80) && (signature[20] != 0x00)) {
                s.write(0);
                s.write(signature, 20, 20);
View Full Code Here

Examples of com.sshtools.j2ssh.util.SimpleASNWriter.writeData()

                s.write(signature, 20, 20);
            } else {
                s.write(signature, 20, 20);
            }

            asn.writeData(s.toByteArray());

            SimpleASNWriter asnEncoded = new SimpleASNWriter();
            asnEncoded.writeByte(0x30);
            asnEncoded.writeData(asn.toByteArray());
View Full Code Here

Examples of com.sshtools.j2ssh.util.SimpleASNWriter.writeData()

            asn.writeData(s.toByteArray());

            SimpleASNWriter asnEncoded = new SimpleASNWriter();
            asnEncoded.writeByte(0x30);
            asnEncoded.writeData(asn.toByteArray());

            byte[] encoded = asnEncoded.toByteArray();

            if (log.isDebugEnabled()) {
                log.debug("Verifying host key signature");
View Full Code Here

Examples of devplugin.Channel.writeData()

      stream.writeInt(mChannels.keySet().size());
      Iterator<Channel> it = mChannels.keySet().iterator();

      while (it.hasNext()) {
        Channel channel = it.next();
        channel.writeData(stream);
        stream.writeObject(mChannels.get(channel));
      }
    }

View Full Code Here

Examples of devplugin.Date.writeData()

    for (ReminderListItem item : items) {
      out.writeInt(3);
      out.writeInt(item.getMinutes());
      out.writeUTF(item.getComment());
      Date date = item.getProgram().getDate();
      date.writeData((java.io.DataOutput) out);
      out.writeObject(item.getProgram().getID());
      out.writeInt(item.getReferenceCount());
    }
  }
View Full Code Here

Examples of devplugin.Date.writeData()

      dataFile.writeInt(2); // version

      dataFile.writeBoolean(mDayProgram.getLastProgramHadEndOnUpdate());

      date.writeData(dataFile);
      channel.writeToDataFile(dataFile);

      int programCount = mDayProgram.getProgramCount();
      dataFile.writeInt(programCount);
      for (int i = 0; i < programCount; i++) {
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.