Examples of toByteArray()


Examples of net.sf.joafip.asm.ClassWriter.toByteArray()

      mv.visitMaxs(3, 3);
      mv.visitEnd();
    }
    cw.visitEnd();

    return cw.toByteArray();
  }
}
View Full Code Here

Examples of net.sf.jpluck.palm.bitmap.Bitmap.toByteArray()

    int size = bitmap.getUncompressedSize();
    if (size > BITMAP_SIZE_LIMIT) {
      throw new RuntimeException("Bitmap size of " + size + " exceeds maximum size of " + BITMAP_SIZE_LIMIT);
    }
    out.write(bitmap.toByteArray());
    return null;
  }
}
View Full Code Here

Examples of net.sf.xbus.base.bytearraylist.ByteArrayList.toByteArray()

  public Object transform(Object inObject, XBUSSystem source,
      XBUSSystem destination, Message destinationMessage)
  {
    ByteArrayList bal = (ByteArrayList) inObject;

    return new ByteArrayInputStream(bal.toByteArray());
  }

}
View Full Code Here

Examples of net.solosky.maplefetion.net.buffer.ByteWriter.toByteArray()

    public void processOutcoming(Object o) throws FetionException
    {
      if(o instanceof ByteWriter) {
        ByteWriter writer = (ByteWriter) o;
        try {
             this.sendBytes(writer.toByteArray(), 0, writer.size());
            } catch (TransferException e) {
              this.raiseException(e);
            }
      }
    }
View Full Code Here

Examples of net.sourceforge.htmlunit.corejs.classfile.ClassFileWriter.toByteArray()

        cfw.addInvoke(ByteCode.INVOKEINTERFACE,
                "net/sourceforge/htmlunit/corejs/javascript/Callable", "call",
                "(" + callableCallSig);
        cfw.add(ByteCode.ARETURN);
        cfw.stopMethod((short)6);
        return cfw.toByteArray();
    }
}
View Full Code Here

Examples of net.timewalker.ffmq3.utils.RawDataBuffer.toByteArray()

   
    private byte[] serialize( AbstractMessage message ) throws Exception
    {
        RawDataBuffer buffer = new RawDataBuffer(1024);
        MessageSerializer.serializeTo(message, buffer);
        return buffer.toByteArray();
    }
   
    private AbstractMessage unserialize( byte[] data ) throws Exception
    {
        RawDataBuffer buffer = new RawDataBuffer(data);
View Full Code Here

Examples of net.tomp2p.peers.Number160.toByteArray()

    }

  private void serializeFile(DataOutput out, Data value) throws IOException, FileNotFoundException {
      Number160 hash = value.hash();
      // store file name
      out.write(hash.toByteArray());
      // store as external file, create path
      RandomAccessFile file = null;
      FileChannel rwChannel = null;
      try {
        file = new RandomAccessFile(new File(path, hash.toString()), "rw");
View Full Code Here

Examples of nginx.clojure.asm.ClassWriter.toByteArray()

            return null;
        }
        db.trace("TRANSFORM: %s", r.getClassName());
        InstrumentClass ic = new InstrumentClass(r.getClassName(), ce, cv, db, false);
        r.accept(ic, ClassReader.SKIP_FRAMES);
        return cw.toByteArray();
    }
   
  public static void dumpClass(byte[] classfileBuffer, File df, MethodDatabase db)  {
    try{
      RandomAccessFile raf = new RandomAccessFile(df, "rw");
View Full Code Here

Examples of org.activemq.util.FastOutputStream.toByteArray()

            FastOutputStream buffer = new FastOutputStream();
            DataOutputStream out = new DataOutputStream(buffer);
            out.writeLong(unwrapLong(previousKey));
            out.writeLong(unwrapLong(nextKey));
            out.writeUTF((String) value);
            return buffer.toByteArray();
        }

        public void fromBytes(byte[] data) throws IOException {
            DataInputStream in = new DataInputStream(new FastInputStream(data));
            this.previousKey = wrapLong(in.readLong());
View Full Code Here

Examples of org.apache.activeio.util.ByteArrayOutputStream.toByteArray()

            ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            ObjectOutputStream out = new ObjectOutputStream(buffer);
            out.writeObject(data);
            out.close();
            connection = factory.getDataSource().getConnection();
            factory.getAdapter().doStoreData(connection, name + ":" + id, buffer.toByteArray());
        } catch (Exception e) {
            throw (IOException) new IOException("Error storing object").initCause(e);
        } finally {
            if (connection != null) {
                try {
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.