Back to project page bitcoin-wallet.
The source code is released under:
Copyright (C) 2011 by Caleb Anderson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the ...
If you think the Android project bitcoin-wallet listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.dirtyfilthy.bitcoin.protocol; //from w w w . j a v a2s .co m import java.io.DataInputStream; import java.io.IOException; import net.dirtyfilthy.bitcoin.core.Tx; public class TxPacket extends Packet { private Tx tx; public TxPacket(long ver) { super(ver,"tx"); } public TxPacket() { super(); setCommand("tx"); } public void readData(DataInputStream in) throws IOException{ this.tx=new Tx(in); } public byte[] create(){ return tx.toByteArray(); } public void setTx(Tx tx) { this.tx = tx; } public Tx getTx() { return tx; } }