- java.lang.String
+ String
toString ()
@@ -154,10 +159,10 @@ java.lang.Object
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
@@ -176,10 +181,10 @@ java.lang.Object
toString
-public java.lang.String toString ()
+public String toString ()
-Overrides: toString
in class java.lang.Object
+Overrides: toString
in class Object
@@ -198,8 +203,10 @@ public java.lang.String toString ()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -244,6 +251,6 @@ DETAIL: FIELD | CONSTR | METHO
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/Base58.html b/target/site/apidocs/com/google/bitcoin/core/Base58.html
similarity index 66%
rename from docs/com/google/bitcoin/core/Base58.html
rename to target/site/apidocs/com/google/bitcoin/core/Base58.html
index 5efbd261f..47ff19d4a 100644
--- a/docs/com/google/bitcoin/core/Base58.html
+++ b/target/site/apidocs/com/google/bitcoin/core/Base58.html
@@ -2,10 +2,13 @@
+
+
-Base58
+Base58 (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ Base58
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="Base58";
+ parent.document.title="Base58 (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -52,7 +57,7 @@ function windowTitle()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -88,12 +93,12 @@ com.google.bitcoin.core
Class Base58
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.Base58
-public class Base58 extends java.lang.Object
+public class Base58 extends Object
@@ -143,7 +148,7 @@ A custom form of base58 is used to encode BitCoin addresses. Note that this is n
static byte[]
-decode (java.lang.String input)
+decode (String input)
@@ -151,22 +156,22 @@ A custom form of base58 is used to encode BitCoin addresses. Note that this is n
static byte[]
-decodeChecked (java.lang.String input)
+decodeChecked (String input)
Uses the checksum in the last 4 bytes of the decoded data to verify the rest are correct.
-static java.math.BigInteger
-decodeToBigInteger (java.lang.String input)
+static BigInteger
+decodeToBigInteger (String input)
-static java.lang.String
+static String
encode (byte[] input)
@@ -176,10 +181,10 @@ A custom form of base58 is used to encode BitCoin addresses. Note that this is n
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
@@ -215,7 +220,7 @@ public Base58 ()
encode
-public static java.lang.String encode (byte[] input)
+public static String encode (byte[] input)
@@ -226,7 +231,7 @@ public static java.lang.String encode (byte[] input)
decode
-public static byte[] decode (java.lang.String input)
+public static byte[] decode (String input)
throws AddressFormatException
@@ -240,8 +245,8 @@ public static byte[] decode (java.lang.String input)
decodeToBigInteger
-public static java.math.BigInteger decodeToBigInteger (java.lang.String input)
- throws AddressFormatException
+public static BigInteger decodeToBigInteger (String input)
+ throws AddressFormatException
@@ -254,7 +259,7 @@ public static java.math.BigInteger decodeToBigInteger (java.lang.String&nb
decodeChecked
-public static byte[] decodeChecked (java.lang.String input)
+public static byte[] decodeChecked (String input)
throws AddressFormatException
Uses the checksum in the last 4 bytes of the decoded data to verify the rest are correct. The checksum is
@@ -279,8 +284,10 @@ public static byte[] decodeChecked (java.lang.String input)
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -296,7 +303,7 @@ public static byte[] decodeChecked (java.lang.String input)
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -325,6 +332,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/target/site/apidocs/com/google/bitcoin/core/BitcoinSerializer.html b/target/site/apidocs/com/google/bitcoin/core/BitcoinSerializer.html
new file mode 100644
index 000000000..9d05e75c8
--- /dev/null
+++ b/target/site/apidocs/com/google/bitcoin/core/BitcoinSerializer.html
@@ -0,0 +1,323 @@
+
+
+
+
+
+
+
+BitcoinSerializer (BitCoinJ 0.2 API)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+com.google.bitcoin.core
+
+Class BitcoinSerializer
+
+java.lang.Object
+ com.google.bitcoin.core.BitcoinSerializer
+
+
+
+public class BitcoinSerializer extends Object
+
+
+
+Methods to serialize and de-serialize messages to the bitcoin network format as defined in the bitcoin protocol
+ specification at https://en.bitcoin.it/wiki/Protocol_specification
+
+ To be able to serialize and deserialize new Message subclasses the following criteria needs to be met.
+
+ The proper Class instance needs to be mapped to it's message name in the names variable below
+ There needs to be a constructor matching: NetworkParameters params, byte[] payload
+ Message.bitcoinSerializeToStream() needs to be properly subclassed
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Methods inherited from class java.lang.Object
+
+
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
+
+
+
+
+
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+BitcoinSerializer
+
+public BitcoinSerializer (NetworkParameters params,
+ boolean usesChecksumming)
+
+Constructs a BitcoinSerializer with the given behavior.
+
+
+Parameters: params
- networkParams used to create Messages instances and termining packetMagicusesChecksumming
- set to true if checkums should be included and expected in headers
+
+
+
+
+
+
+
+
+useChecksumming
+
+public void useChecksumming (boolean usesChecksumming)
+
+
+
+
+
+
+
+
+serialize
+
+public void serialize (Message message,
+ OutputStream out)
+ throws IOException
+
+Writes message to to the output stream.
+
+
+
+Throws:
+IOException
+
+
+
+
+
+deserialize
+
+public Message deserialize (InputStream in)
+ throws ProtocolException ,
+ IOException
+
+Reads a message from the given InputStream and returns it.
+
+
+
+Throws:
+ProtocolException
+IOException
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Copyright © 2011. All Rights Reserved.
+
+
diff --git a/docs/com/google/bitcoin/core/Block.html b/target/site/apidocs/com/google/bitcoin/core/Block.html
similarity index 79%
rename from docs/com/google/bitcoin/core/Block.html
rename to target/site/apidocs/com/google/bitcoin/core/Block.html
index 0a957d0d0..330f8f14d 100644
--- a/docs/com/google/bitcoin/core/Block.html
+++ b/target/site/apidocs/com/google/bitcoin/core/Block.html
@@ -2,10 +2,13 @@
+
+
-Block
+Block (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ Block
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="Block";
+ parent.document.title="Block (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -51,7 +56,7 @@ function windowTitle()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -88,12 +93,12 @@ com.google.bitcoin.core
Class Block
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.Message
com.google.bitcoin.core.Block
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
@@ -178,7 +183,7 @@ A block is the foundation of the BitCoin system. It records a set of
boolean
-equals (java.lang.Object o)
+equals (Object o)
@@ -193,7 +198,7 @@ A block is the foundation of the BitCoin system. It records a set of
- java.math.BigInteger
+ BigInteger
getDifficultyTargetAsInteger ()
@@ -209,7 +214,7 @@ A block is the foundation of the BitCoin system. It records a set of
- java.lang.String
+ String
getHashAsString ()
@@ -259,7 +264,7 @@ A block is the foundation of the BitCoin system. It records a set of
- java.math.BigInteger
+ BigInteger
getWork ()
@@ -275,7 +280,7 @@ A block is the foundation of the BitCoin system. It records a set of
- java.lang.String
+ String
toString ()
@@ -302,10 +307,10 @@ A block is the foundation of the BitCoin system. It records a set of
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+clone , finalize , getClass , notify , notifyAll , wait , wait , wait
@@ -370,7 +375,7 @@ public Block (
getHashAsString
-public java.lang.String getHashAsString ()
+public String getHashAsString ()
Returns the hash of the block (which for a valid, solved block should be below the target) in the form seen
on the block explorer. If you call this on block 1 in the production chain, you will get
@@ -398,8 +403,8 @@ public byte[] getHash ()
getWork
-public java.math.BigInteger getWork ()
- throws VerificationException
+public BigInteger getWork ()
+ throws VerificationException
Returns the work represented by this block.
@@ -431,13 +436,13 @@ public
toString
-public java.lang.String toString ()
+public String toString ()
Returns a multi-line string containing a description of the contents of the block. Use for debugging purposes
only.
-Overrides: toString
in class java.lang.Object
+ Overrides: toString
in class Object
@@ -448,8 +453,8 @@ public java.lang.String toString ()
getDifficultyTargetAsInteger
-public java.math.BigInteger getDifficultyTargetAsInteger ()
- throws VerificationException
+public BigInteger getDifficultyTargetAsInteger ()
+ throws VerificationException
Returns the difficulty target as a 256 bit value that can be compared to a SHA-256 hash. Inside a block the
target is represented using a compact form. If this form decodes to a value that is out of bounds,
@@ -485,10 +490,10 @@ public void verify ()
equals
-public boolean equals (java.lang.Object o)
+public boolean equals (Object o)
-Overrides: equals
in class java.lang.Object
+Overrides: equals
in class Object
@@ -502,7 +507,7 @@ hashCode
public int hashCode ()
-Overrides: hashCode
in class java.lang.Object
+Overrides: hashCode
in class Object
@@ -602,8 +607,10 @@ public long getNonce ()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -618,7 +625,7 @@ public long getNonce ()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -648,6 +655,6 @@ DETAIL: FIELD |
-BlockChain
+BlockChain (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ BlockChain
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="BlockChain";
+ parent.document.title="BlockChain (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,12 +93,12 @@ com.google.bitcoin.core
Class BlockChain
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.BlockChain
-public class BlockChain extends java.lang.Object
+public class BlockChain extends Object
@@ -221,10 +226,10 @@ A BlockChain holds a series of
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
@@ -310,7 +315,7 @@ public BlockChain (MemoryBlockStore
if you don't care about saving the downloaded data, or a
- DiskBlockStore
if you'd like to ensure fast startup the next time you run the program.
+ BoundedOverheadBlockStore
if you'd like to ensure fast startup the next time you run the program.
@@ -382,8 +387,10 @@ public
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -428,6 +435,6 @@ DETAIL: FIELD |
-BlockStore
+BlockStore (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ BlockStore
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="BlockStore";
+ parent.document.title="BlockStore (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,7 +93,7 @@ com.google.bitcoin.core
Interface BlockStore
-All Known Implementing Classes: DiskBlockStore , MemoryBlockStore
+All Known Implementing Classes: BoundedOverheadBlockStore , DiskBlockStore , MemoryBlockStore
@@ -243,8 +248,10 @@ void setChainHead (
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -289,6 +296,6 @@ DETAIL: FIELD | CONSTR | METHO
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/BlockStoreException.html b/target/site/apidocs/com/google/bitcoin/core/BlockStoreException.html
similarity index 54%
rename from docs/com/google/bitcoin/core/BlockStoreException.html
rename to target/site/apidocs/com/google/bitcoin/core/BlockStoreException.html
index 6a46e7d63..bd1127e56 100644
--- a/docs/com/google/bitcoin/core/BlockStoreException.html
+++ b/target/site/apidocs/com/google/bitcoin/core/BlockStoreException.html
@@ -2,10 +2,13 @@
+
+
-BlockStoreException
+BlockStoreException (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ BlockStoreException
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="BlockStoreException";
+ parent.document.title="BlockStoreException (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -52,7 +57,7 @@ function windowTitle()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -88,17 +93,17 @@ com.google.bitcoin.core
Class BlockStoreException
-java.lang.Object
- java.lang.Throwable
- java.lang.Exception
+java.lang.Object
+ java.lang.Throwable
+ java.lang.Exception
com.google.bitcoin.core.BlockStoreException
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
-public class BlockStoreException extends java.lang.Exception
+public class BlockStoreException extends Exception
@@ -121,13 +126,13 @@ Thrown when something goes wrong with storing a block. Examples: out of disk spa
Constructor Summary
-BlockStoreException (java.lang.String message)
+BlockStoreException (String message)
-BlockStoreException (java.lang.Throwable t)
+BlockStoreException (Throwable t)
@@ -146,19 +151,19 @@ Thrown when something goes wrong with storing a block. Examples: out of disk spa
-Methods inherited from class java.lang.Throwable
+Methods inherited from class java.lang.Throwable
-fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+fillInStackTrace , getCause , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
@@ -177,7 +182,7 @@ Thrown when something goes wrong with storing a block. Examples: out of disk spa
BlockStoreException
-public BlockStoreException (java.lang.String message)
+public BlockStoreException (String message)
@@ -185,7 +190,7 @@ public BlockStoreException (java.lang.String message)
BlockStoreException
-public BlockStoreException (java.lang.Throwable t)
+public BlockStoreException (Throwable t)
@@ -201,8 +206,10 @@ public BlockStoreException (java.lang.Throwable t)
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -218,7 +225,7 @@ public BlockStoreException (java.lang.Throwable t)
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -247,6 +254,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/target/site/apidocs/com/google/bitcoin/core/BoundedOverheadBlockStore.html b/target/site/apidocs/com/google/bitcoin/core/BoundedOverheadBlockStore.html
new file mode 100644
index 000000000..6d0849cfb
--- /dev/null
+++ b/target/site/apidocs/com/google/bitcoin/core/BoundedOverheadBlockStore.html
@@ -0,0 +1,376 @@
+
+
+
+
+
+
+
+BoundedOverheadBlockStore (BitCoinJ 0.2 API)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+com.google.bitcoin.core
+
+Class BoundedOverheadBlockStore
+
+java.lang.Object
+ com.google.bitcoin.core.BoundedOverheadBlockStore
+
+
+All Implemented Interfaces: BlockStore
+
+
+
+public class BoundedOverheadBlockStore extends Object implements BlockStore
+
+
+
+Stores the block chain to disk.
+
+ This implementation is designed to have constant memory usage, regardless of the size of the block chain being
+ stored. It exploits operating system level buffering and the fact that get() requests are, in normal usage,
+ localized in chain space.
+
+ Blocks are stored sequentially. Most blocks are fetched out of a small in-memory cache. The slowest part is
+ traversing difficulty transition points, which requires seeking backwards over around 2000 blocks. On a Google
+ Nexus S phone this takes a couple of seconds. On a MacBook Pro it takes around 50msec.
+
+ The store has much room for optimization. Expanding the size of the cache will likely allow us to traverse
+ difficulty transitions without using too much memory and without hitting the disk at all, for the case of initial
+ block chain download. Storing the hashes on disk would allow us to avoid deserialization and hashing which is
+ expensive on Android.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Methods inherited from class java.lang.Object
+
+
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
+
+
+
+
+
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+BoundedOverheadBlockStore
+
+public BoundedOverheadBlockStore (NetworkParameters params,
+ File file)
+ throws BlockStoreException
+
+
+
+Throws:
+BlockStoreException
+
+
+
+
+
+
+
+
+put
+
+public void put (StoredBlock block)
+ throws BlockStoreException
+
+Description copied from interface: BlockStore
+Saves the given block header+extra data. The key isn't specified explicitly as it can be calculated from the
+ StoredBlock directly. Can throw if there is a problem with the underlying storage layer such as running out of
+ disk space.
+
+
+Specified by: put
in interface BlockStore
+
+
+
+Throws:
+BlockStoreException
+
+
+
+
+
+get
+
+public StoredBlock get (byte[] hashBytes)
+ throws BlockStoreException
+
+Description copied from interface: BlockStore
+Returns the StoredBlock given a hash. The returned values block.getHash() method will be equal to the
+ parameter. If no such block is found, returns null.
+
+
+Specified by: get
in interface BlockStore
+
+
+
+Throws:
+BlockStoreException
+
+
+
+
+
+getChainHead
+
+public StoredBlock getChainHead ()
+ throws BlockStoreException
+
+Description copied from interface: BlockStore
+Returns the StoredBlock
that represents the top of the chain of greatest total work.
+
+
+Specified by: getChainHead
in interface BlockStore
+
+
+
+Throws:
+BlockStoreException
+
+
+
+
+
+setChainHead
+
+public void setChainHead (StoredBlock chainHead)
+ throws BlockStoreException
+
+Description copied from interface: BlockStore
+Sets the StoredBlock
that represents the top of the chain of greatest total work.
+
+
+Specified by: setChainHead
in interface BlockStore
+
+
+
+Throws:
+BlockStoreException
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Copyright © 2011. All Rights Reserved.
+
+
diff --git a/docs/com/google/bitcoin/core/DiskBlockStore.html b/target/site/apidocs/com/google/bitcoin/core/DiskBlockStore.html
similarity index 79%
rename from docs/com/google/bitcoin/core/DiskBlockStore.html
rename to target/site/apidocs/com/google/bitcoin/core/DiskBlockStore.html
index 259b95272..2c7b322f5 100644
--- a/docs/com/google/bitcoin/core/DiskBlockStore.html
+++ b/target/site/apidocs/com/google/bitcoin/core/DiskBlockStore.html
@@ -2,10 +2,13 @@
+
+
-DiskBlockStore
+DiskBlockStore (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ DiskBlockStore
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="DiskBlockStore";
+ parent.document.title="DiskBlockStore (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -51,7 +56,7 @@ function windowTitle()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -88,7 +93,7 @@ com.google.bitcoin.core
Class DiskBlockStore
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.DiskBlockStore
@@ -96,7 +101,7 @@ java.lang.Object
-public class DiskBlockStore extends java.lang.Objectimplements BlockStore
+public class DiskBlockStore extends Object implements BlockStore
@@ -119,7 +124,7 @@ Stores the block chain to disk but still holds it in memory. This is intended fo
DiskBlockStore (NetworkParameters params,
- java.io.File file)
+ File file)
@@ -170,10 +175,10 @@ Stores the block chain to disk but still holds it in memory. This is intended fo
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
@@ -193,7 +198,7 @@ Stores the block chain to disk but still holds it in memory. This is intended fo
DiskBlockStore
public DiskBlockStore (NetworkParameters params,
- java.io.File file)
+ File file)
throws BlockStoreException
@@ -306,8 +311,10 @@ public void setChainHead (
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -322,7 +329,7 @@ public void setChainHead (
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -352,6 +359,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/DnsDiscovery.html b/target/site/apidocs/com/google/bitcoin/core/DnsDiscovery.html
similarity index 69%
rename from docs/com/google/bitcoin/core/DnsDiscovery.html
rename to target/site/apidocs/com/google/bitcoin/core/DnsDiscovery.html
index 2b9c6ef7d..5c006cf00 100644
--- a/docs/com/google/bitcoin/core/DnsDiscovery.html
+++ b/target/site/apidocs/com/google/bitcoin/core/DnsDiscovery.html
@@ -2,10 +2,13 @@
+
+
-DnsDiscovery
+DnsDiscovery (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ DnsDiscovery
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="DnsDiscovery";
+ parent.document.title="DnsDiscovery (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -52,7 +57,7 @@ function windowTitle()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -88,7 +93,7 @@ com.google.bitcoin.core
Class DnsDiscovery
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.DnsDiscovery
@@ -96,7 +101,7 @@ java.lang.Object
-public class DnsDiscovery extends java.lang.Objectimplements PeerDiscovery
+public class DnsDiscovery extends Object implements PeerDiscovery
@@ -129,7 +134,7 @@ Supports peer discovery through DNS.
Supports finding peers through DNS A records.
-DnsDiscovery (java.lang.String[] hostNames,
+DnsDiscovery (String [] hostNames,
NetworkParameters netParams)
@@ -147,7 +152,7 @@ Supports peer discovery through DNS.
-static java.lang.String[]
+static String []
getDefaultHostNames ()
@@ -155,7 +160,7 @@ Supports peer discovery through DNS.
- java.net.InetSocketAddress[]
+ InetSocketAddress []
getPeers ()
@@ -165,10 +170,10 @@ Supports peer discovery through DNS.
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
@@ -199,7 +204,7 @@ public DnsDiscovery (
DnsDiscovery
-public DnsDiscovery (java.lang.String[] hostNames,
+public DnsDiscovery (String [] hostNames,
NetworkParameters netParams)
Supports finding peers through DNS A records.
@@ -221,8 +226,8 @@ public DnsDiscovery (java.lang.String[] hostNames,
getPeers
-public java.net.InetSocketAddress[] getPeers ()
- throws PeerDiscoveryException
+public InetSocketAddress [] getPeers ()
+ throws PeerDiscoveryException
Description copied from interface: PeerDiscovery
Returns an array of addresses. This method may block.
@@ -241,7 +246,7 @@ public java.net.InetSocketAddress[] getPeers ()
getDefaultHostNames
-public static java.lang.String[] getDefaultHostNames ()
+public static String [] getDefaultHostNames ()
Returns the well known discovery host names on the production network.
@@ -265,8 +270,10 @@ public static java.lang.String[] getDefaultHostNames ()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -282,7 +289,7 @@ public static java.lang.String[] getDefaultHostNames ()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -311,6 +318,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/target/site/apidocs/com/google/bitcoin/core/DumpedPrivateKey.html b/target/site/apidocs/com/google/bitcoin/core/DumpedPrivateKey.html
new file mode 100644
index 000000000..57baf87f2
--- /dev/null
+++ b/target/site/apidocs/com/google/bitcoin/core/DumpedPrivateKey.html
@@ -0,0 +1,317 @@
+
+
+
+
+
+
+
+DumpedPrivateKey (BitCoinJ 0.2 API)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+com.google.bitcoin.core
+
+Class DumpedPrivateKey
+
+java.lang.Object
+ com.google.bitcoin.core.VersionedChecksummedBytes
+ com.google.bitcoin.core.DumpedPrivateKey
+
+
+
+public class DumpedPrivateKey extends VersionedChecksummedBytes
+
+
+
+Parses and generates private keys in the form used by the Bitcoin "dumpprivkey" command. This is the private key
+ bytes with a header byte and 4 checksum bytes at the end.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Method Summary
+
+
+
+ ECKey
+getKey ()
+
+
+ Returns an ECKey created from this encoded private key.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+DumpedPrivateKey
+
+public DumpedPrivateKey (NetworkParameters params,
+ byte[] keyBytes)
+
+Allows the output of a private key in versioned, checksummed form.
+
+
+Parameters: params
- The network parameters of this key, needed for the version byte.keyBytes
- The 256-bit private key.
+
+
+
+
+DumpedPrivateKey
+
+public DumpedPrivateKey (NetworkParameters params,
+ String encoded)
+ throws AddressFormatException
+
+Parses the given private key as created by the "dumpprivkey" Bitcoin C++ RPC.
+
+
+Parameters: params
- The expected network parameters of the key. If you don't care, provide null.encoded
- The base58 encoded string.
+Throws:
+AddressFormatException
- If the string is invalid or the header byte doesn't match the network params.
+
+
+
+
+
+
+
+
+getKey
+
+public ECKey getKey ()
+
+Returns an ECKey created from this encoded private key.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Copyright © 2011. All Rights Reserved.
+
+
diff --git a/docs/com/google/bitcoin/core/ECKey.html b/target/site/apidocs/com/google/bitcoin/core/ECKey.html
similarity index 76%
rename from docs/com/google/bitcoin/core/ECKey.html
rename to target/site/apidocs/com/google/bitcoin/core/ECKey.html
index 87bbd9ed2..99d98c365 100644
--- a/docs/com/google/bitcoin/core/ECKey.html
+++ b/target/site/apidocs/com/google/bitcoin/core/ECKey.html
@@ -2,10 +2,13 @@
+
+
-ECKey
+ECKey (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ ECKey
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="ECKey";
+ parent.document.title="ECKey (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -51,7 +56,7 @@ function windowTitle()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -88,15 +93,15 @@ com.google.bitcoin.core
Class ECKey
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.ECKey
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
-public class ECKey extends java.lang.Objectimplements java.io.Serializable
+public class ECKey extends Object implements Serializable
@@ -127,7 +132,7 @@ Represents an elliptic curve keypair that we own and can use for signing transac
Generates an entirely new keypair.
-ECKey (java.math.BigInteger privKey)
+ECKey (BigInteger privKey)
Creates an ECKey given only the private key.
@@ -193,7 +198,7 @@ Represents an elliptic curve keypair that we own and can use for signing transac
- java.lang.String
+ String
toString ()
@@ -222,10 +227,10 @@ Represents an elliptic curve keypair that we own and can use for signing transac
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
@@ -254,7 +259,7 @@ public ECKey ()
ECKey
-public ECKey (java.math.BigInteger privKey)
+public ECKey (BigInteger privKey)
Creates an ECKey given only the private key. This works because EC public keys are derivable from their
private keys by doing a multiply with the generator value.
@@ -341,10 +346,10 @@ public byte[] getPubKey ()
toString
-public java.lang.String toString ()
+public String toString ()
-Overrides: toString
in class java.lang.Object
+Overrides: toString
in class Object
@@ -432,8 +437,10 @@ public boolean verify (byte[] data,
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -448,7 +455,7 @@ public boolean verify (byte[] data,
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -478,6 +485,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/GetBlocksMessage.html b/target/site/apidocs/com/google/bitcoin/core/GetBlocksMessage.html
similarity index 74%
rename from docs/com/google/bitcoin/core/GetBlocksMessage.html
rename to target/site/apidocs/com/google/bitcoin/core/GetBlocksMessage.html
index 9a89abf10..b31d7d0bb 100644
--- a/docs/com/google/bitcoin/core/GetBlocksMessage.html
+++ b/target/site/apidocs/com/google/bitcoin/core/GetBlocksMessage.html
@@ -2,10 +2,13 @@
+
+
-GetBlocksMessage
+GetBlocksMessage (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ GetBlocksMessage
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="GetBlocksMessage";
+ parent.document.title="GetBlocksMessage (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,12 +93,12 @@ com.google.bitcoin.core
Class GetBlocksMessage
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.Message
com.google.bitcoin.core.GetBlocksMessage
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
@@ -135,7 +140,7 @@ java.lang.Object
GetBlocksMessage (NetworkParameters params,
- java.util.List<byte[]> locator,
+ List <byte[]> locator,
byte[] stopHash)
@@ -169,7 +174,7 @@ java.lang.Object
- java.lang.String
+ String
toString ()
@@ -179,10 +184,10 @@ java.lang.Object
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
@@ -202,7 +207,7 @@ java.lang.Object
GetBlocksMessage
public GetBlocksMessage (NetworkParameters params,
- java.util.List<byte[]> locator,
+ List <byte[]> locator,
byte[] stopHash)
@@ -234,10 +239,10 @@ public void parse ()
toString
-public java.lang.String toString ()
+public String toString ()
-Overrides: toString
in class java.lang.Object
+Overrides: toString
in class Object
@@ -270,8 +275,10 @@ public byte[] bitcoinSerialize ()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -316,6 +323,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/GetDataMessage.html b/target/site/apidocs/com/google/bitcoin/core/GetDataMessage.html
similarity index 63%
rename from docs/com/google/bitcoin/core/GetDataMessage.html
rename to target/site/apidocs/com/google/bitcoin/core/GetDataMessage.html
index 51337a741..dcfc434be 100644
--- a/docs/com/google/bitcoin/core/GetDataMessage.html
+++ b/target/site/apidocs/com/google/bitcoin/core/GetDataMessage.html
@@ -2,10 +2,13 @@
+
+
-GetDataMessage
+GetDataMessage (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ GetDataMessage
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="GetDataMessage";
+ parent.document.title="GetDataMessage (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
@@ -88,16 +93,17 @@ com.google.bitcoin.core
Class GetDataMessage
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.Message
- com.google.bitcoin.core.GetDataMessage
+ com.google.bitcoin.core.ListMessage
+ com.google.bitcoin.core.GetDataMessage
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
-public class GetDataMessage extends Message
+public class GetDataMessage extends ListMessage
@@ -134,6 +140,12 @@ java.lang.Object
Constructor Summary
+GetDataMessage (NetworkParameters params)
+
+
+
+
+
GetDataMessage (NetworkParameters params,
byte[] payloadBytes)
@@ -150,30 +162,32 @@ java.lang.Object
Method Summary
-
-
- byte[]
-bitcoinSerialize ()
-
-
-
+
+
+
+
+
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
@@ -201,45 +215,13 @@ public GetDataMessage (ProtocolException
-
-
-
-
-
-
-
-bitcoinSerialize
-
-public byte[] bitcoinSerialize ()
-
-
-Overrides: bitcoinSerialize
in class Message
-
-
-
-
-
-
-parse
+
+GetDataMessage
-public void parse ()
- throws ProtocolException
+public GetDataMessage (NetworkParameters params)
-
-
-
-
-
-Throws:
-ProtocolException
-
@@ -254,8 +236,10 @@ public void parse ()
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/InventoryItem.Type.html b/target/site/apidocs/com/google/bitcoin/core/InventoryItem.Type.html
similarity index 66%
rename from docs/com/google/bitcoin/core/InventoryItem.Type.html
rename to target/site/apidocs/com/google/bitcoin/core/InventoryItem.Type.html
index 3822842a0..49c4bc66c 100644
--- a/docs/com/google/bitcoin/core/InventoryItem.Type.html
+++ b/target/site/apidocs/com/google/bitcoin/core/InventoryItem.Type.html
@@ -2,10 +2,13 @@
+
+
-InventoryItem.Type
+InventoryItem.Type (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ InventoryItem.Type
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="InventoryItem.Type";
+ parent.document.title="InventoryItem.Type (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,19 +93,19 @@ com.google.bitcoin.core
Enum InventoryItem.Type
-java.lang.Object
- java.lang.Enum<InventoryItem.Type >
+java.lang.Object
+ java.lang.Enum <InventoryItem.Type >
com.google.bitcoin.core.InventoryItem.Type
-All Implemented Interfaces: java.io.Serializable, java.lang.Comparable<InventoryItem.Type >
+All Implemented Interfaces: Serializable , Comparable <InventoryItem.Type >
Enclosing class: InventoryItem
-public static enum InventoryItem.Type extends java.lang.Enum<InventoryItem.Type >
+public static enum InventoryItem.Type extends Enum <InventoryItem.Type >
@@ -146,7 +151,7 @@ java.lang.Object
static InventoryItem.Type
-valueOf (java.lang.String name)
+valueOf (String name)
Returns the enum constant of this type with the specified name.
@@ -164,19 +169,19 @@ the order they are declared.
-Methods inherited from class java.lang.Enum
+Methods inherited from class java.lang.Enum
-clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
+clone , compareTo , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-getClass, notify, notifyAll, wait, wait, wait
+getClass , notify , notifyAll , wait , wait , wait
@@ -255,7 +260,7 @@ the order they are declared
valueOf
-public static InventoryItem.Type valueOf (java.lang.String name)
+public static InventoryItem.Type valueOf (String name)
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
@@ -266,9 +271,9 @@ not permitted.)
Parameters: name
- the name of the enum constant to be returned.
Returns: the enum constant with the specified name
Throws:
-java.lang.IllegalArgumentException
- if this enum type has no constant
+IllegalArgumentException
- if this enum type has no constant
with the specified name
-java.lang.NullPointerException
- if the argument is null
+NullPointerException
- if the argument is null
@@ -284,8 +289,10 @@ with the specified name
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -330,6 +337,6 @@ DETAIL: ENUM CONSTANTS | FIEL
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/InventoryItem.html b/target/site/apidocs/com/google/bitcoin/core/InventoryItem.html
similarity index 74%
rename from docs/com/google/bitcoin/core/InventoryItem.html
rename to target/site/apidocs/com/google/bitcoin/core/InventoryItem.html
index 01f1b126a..67bdcf8c7 100644
--- a/docs/com/google/bitcoin/core/InventoryItem.html
+++ b/target/site/apidocs/com/google/bitcoin/core/InventoryItem.html
@@ -2,10 +2,13 @@
+
+
-InventoryItem
+InventoryItem (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ InventoryItem
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="InventoryItem";
+ parent.document.title="InventoryItem (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,12 +93,12 @@ com.google.bitcoin.core
Class InventoryItem
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.InventoryItem
-public class InventoryItem extends java.lang.Object
+public class InventoryItem extends Object
@@ -170,7 +175,7 @@ java.lang.Object
- java.lang.String
+ String
toString ()
@@ -180,10 +185,10 @@ java.lang.Object
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
@@ -249,10 +254,10 @@ public InventoryItem (
toString
-public java.lang.String toString ()
+public String toString ()
-Overrides: toString
in class java.lang.Object
+Overrides: toString
in class Object
@@ -271,8 +276,10 @@ public java.lang.String toString ()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -317,6 +324,6 @@ DETAIL: FIELD |
-InventoryMessage
+InventoryMessage (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ InventoryMessage
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="InventoryMessage";
+ parent.document.title="InventoryMessage (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
@@ -88,16 +93,17 @@ com.google.bitcoin.core
Class InventoryMessage
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.Message
- com.google.bitcoin.core.InventoryMessage
+ com.google.bitcoin.core.ListMessage
+ com.google.bitcoin.core.InventoryMessage
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
-public class InventoryMessage extends Message
+public class InventoryMessage extends ListMessage
@@ -114,14 +120,6 @@ java.lang.Object
Field Summary
-
-
- java.util.List<InventoryItem >
-items
-
-
-
-
@@ -164,21 +162,14 @@ java.lang.Object
Method Summary
-
-
- void
-bitcoinSerializeToStream (java.io.OutputStream stream)
-
-
- Serializes this message to the provided stream.
+
+
+
@@ -193,34 +184,15 @@ java.lang.Object
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
-
-
-
-
-
-
-items
-
-public java.util.List<InventoryItem > items
-
-
-
-
-
@@ -251,52 +223,6 @@ InventoryMessage
public InventoryMessage (NetworkParameters params)
-
-
-
-
-
-
-
-parse
-
-public void parse ()
- throws ProtocolException
-
-
-
-
-
-
-Throws:
-ProtocolException
-
-
-
-
-
-bitcoinSerializeToStream
-
-public void bitcoinSerializeToStream (java.io.OutputStream stream)
- throws java.io.IOException
-
-Description copied from class: Message
-Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
-
-
-
-
-
-
-Throws:
-java.io.IOException
-
-
@@ -310,8 +236,10 @@ public void bitcoinSerializeToStream (java.io.OutputStream stream)
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/IrcDiscovery.html b/target/site/apidocs/com/google/bitcoin/core/IrcDiscovery.html
similarity index 64%
rename from docs/com/google/bitcoin/core/IrcDiscovery.html
rename to target/site/apidocs/com/google/bitcoin/core/IrcDiscovery.html
index ceffa9fcd..2eefb57c3 100644
--- a/docs/com/google/bitcoin/core/IrcDiscovery.html
+++ b/target/site/apidocs/com/google/bitcoin/core/IrcDiscovery.html
@@ -2,10 +2,13 @@
+
+
-IrcDiscovery
+IrcDiscovery (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ IrcDiscovery
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="IrcDiscovery";
+ parent.document.title="IrcDiscovery (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -52,7 +57,7 @@ function windowTitle()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -88,7 +93,7 @@ com.google.bitcoin.core
Class IrcDiscovery
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.IrcDiscovery
@@ -96,7 +101,7 @@ java.lang.Object
-public class IrcDiscovery extends java.lang.Objectimplements PeerDiscovery
+public class IrcDiscovery extends Object implements PeerDiscovery
@@ -117,15 +122,15 @@ IrcDiscovery provides a way to find network peers by joining a pre-agreed rendev
Constructor Summary
-IrcDiscovery (java.lang.String channel)
+IrcDiscovery (String channel)
Finds a list of peers by connecting to an IRC network, joining a channel, decoding the nicks and then
disconnecting.
-IrcDiscovery (java.lang.String channel,
- java.lang.String server,
+IrcDiscovery (String channel,
+ String server,
int port)
@@ -144,7 +149,7 @@ IrcDiscovery provides a way to find network peers by joining a pre-agreed rendev
- java.net.InetSocketAddress[]
+ InetSocketAddress []
getPeers ()
@@ -153,7 +158,7 @@ IrcDiscovery provides a way to find network peers by joining a pre-agreed rendev
protected void
-onIRCReceive (java.lang.String message)
+onIRCReceive (String message)
@@ -161,7 +166,7 @@ IrcDiscovery provides a way to find network peers by joining a pre-agreed rendev
protected void
-onIRCSend (java.lang.String message)
+onIRCSend (String message)
@@ -170,10 +175,10 @@ IrcDiscovery provides a way to find network peers by joining a pre-agreed rendev
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
@@ -192,7 +197,7 @@ IrcDiscovery provides a way to find network peers by joining a pre-agreed rendev
IrcDiscovery
-public IrcDiscovery (java.lang.String channel)
+public IrcDiscovery (String channel)
Finds a list of peers by connecting to an IRC network, joining a channel, decoding the nicks and then
disconnecting.
@@ -206,8 +211,8 @@ public IrcDiscovery (java.lang.String channel)
IrcDiscovery
-public IrcDiscovery (java.lang.String channel,
- java.lang.String server,
+public IrcDiscovery (String channel,
+ String server,
int port)
Finds a list of peers by connecting to an IRC network, joining a channel, decoding the nicks and then
@@ -230,7 +235,7 @@ public IrcDiscovery (java.lang.String channel,
onIRCSend
-protected void onIRCSend (java.lang.String message)
+protected void onIRCSend (String message)
@@ -244,7 +249,7 @@ protected void onIRCSend (java.lang.String message)
onIRCReceive
-protected void onIRCReceive (java.lang.String message)
+protected void onIRCReceive (String message)
@@ -258,8 +263,8 @@ protected void onIRCReceive (java.lang.String message)
getPeers
-public java.net.InetSocketAddress[] getPeers ()
- throws PeerDiscoveryException
+public InetSocketAddress [] getPeers ()
+ throws PeerDiscoveryException
Returns a list of peers that were found in the IRC channel. Note that just because a peer appears in the list
does not mean it is accepting connections.
@@ -286,8 +291,10 @@ public java.net.InetSocketAddress[] getPeers ()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -303,7 +310,7 @@ public java.net.InetSocketAddress[] getPeers ()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -332,6 +339,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/target/site/apidocs/com/google/bitcoin/core/ListMessage.html b/target/site/apidocs/com/google/bitcoin/core/ListMessage.html
new file mode 100644
index 000000000..9e43f3096
--- /dev/null
+++ b/target/site/apidocs/com/google/bitcoin/core/ListMessage.html
@@ -0,0 +1,386 @@
+
+
+
+
+
+
+
+ListMessage (BitCoinJ 0.2 API)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+com.google.bitcoin.core
+
+Class ListMessage
+
+java.lang.Object
+ com.google.bitcoin.core.Message
+ com.google.bitcoin.core.ListMessage
+
+
+All Implemented Interfaces: Serializable
+
+
+Direct Known Subclasses: GetDataMessage , InventoryMessage
+
+
+
+public abstract class ListMessage extends Message
+
+
+
+Abstract superclass of classes with list based payload, i.e. InventoryMessage and GetDataMessage.
+
+
+
+
+See Also: Serialized Form
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Methods inherited from class java.lang.Object
+
+
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
+
+
+
+
+
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+ListMessage
+
+public ListMessage (NetworkParameters params,
+ byte[] bytes)
+ throws ProtocolException
+
+
+
+Throws:
+ProtocolException
+
+
+
+
+ListMessage
+
+public ListMessage (NetworkParameters params)
+
+
+
+
+
+
+
+
+
+getItems
+
+public List <InventoryItem > getItems ()
+
+
+
+
+
+
+
+
+addItem
+
+public void addItem (InventoryItem item)
+
+
+
+
+
+
+
+
+parse
+
+public void parse ()
+ throws ProtocolException
+
+
+
+
+
+
+Throws:
+ProtocolException
+
+
+
+
+
+bitcoinSerializeToStream
+
+public void bitcoinSerializeToStream (OutputStream stream)
+ throws IOException
+
+Description copied from class: Message
+Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
+
+
+
+
+
+
+Throws:
+IOException
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Copyright © 2011. All Rights Reserved.
+
+
diff --git a/docs/com/google/bitcoin/core/MemoryBlockStore.html b/target/site/apidocs/com/google/bitcoin/core/MemoryBlockStore.html
similarity index 80%
rename from docs/com/google/bitcoin/core/MemoryBlockStore.html
rename to target/site/apidocs/com/google/bitcoin/core/MemoryBlockStore.html
index 56d52e064..d45aa53c5 100644
--- a/docs/com/google/bitcoin/core/MemoryBlockStore.html
+++ b/target/site/apidocs/com/google/bitcoin/core/MemoryBlockStore.html
@@ -2,10 +2,13 @@
+
+
-MemoryBlockStore
+MemoryBlockStore (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ MemoryBlockStore
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="MemoryBlockStore";
+ parent.document.title="MemoryBlockStore (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -51,7 +56,7 @@ function windowTitle()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -88,7 +93,7 @@ com.google.bitcoin.core
Class MemoryBlockStore
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.MemoryBlockStore
@@ -96,7 +101,7 @@ java.lang.Object
-public class MemoryBlockStore extends java.lang.Objectimplements BlockStore
+public class MemoryBlockStore extends Object implements BlockStore
@@ -168,10 +173,10 @@ Keeps
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
@@ -295,8 +300,10 @@ public void setChainHead (
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -311,7 +318,7 @@ public void setChainHead (
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -341,6 +348,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/Message.html b/target/site/apidocs/com/google/bitcoin/core/Message.html
similarity index 73%
rename from docs/com/google/bitcoin/core/Message.html
rename to target/site/apidocs/com/google/bitcoin/core/Message.html
index 4040c9e02..00608920a 100644
--- a/docs/com/google/bitcoin/core/Message.html
+++ b/target/site/apidocs/com/google/bitcoin/core/Message.html
@@ -2,10 +2,13 @@
+
+
-Message
+Message (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ Message
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="Message";
+ parent.document.title="Message (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,18 +93,18 @@ com.google.bitcoin.core
Class Message
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.Message
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
-Direct Known Subclasses: AddressMessage , Block , GetBlocksMessage , GetDataMessage , InventoryMessage , PeerAddress , Transaction , TransactionInput , TransactionOutPoint , TransactionOutput , UnknownMessage , VersionMessage
+Direct Known Subclasses: AddressMessage , Block , GetBlocksMessage , ListMessage , PeerAddress , Ping , Transaction , TransactionInput , TransactionOutPoint , TransactionOutput , UnknownMessage , VersionAck , VersionMessage
-public abstract class Message extends java.lang.Objectimplements java.io.Serializable
+public abstract class Message extends Object implements Serializable
@@ -212,10 +217,10 @@ A Message is a data structure that can be serialized/deserialized using both the
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
@@ -344,8 +349,10 @@ public byte[] bitcoinSerialize ()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -390,6 +397,6 @@ DETAIL: FIELD |
-NetworkConnection
+NetworkConnection (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ NetworkConnection
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="NetworkConnection";
+ parent.document.title="NetworkConnection (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,12 +93,12 @@ com.google.bitcoin.core
Class NetworkConnection
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.NetworkConnection
-public class NetworkConnection extends java.lang.Object
+public class NetworkConnection extends Object
@@ -119,7 +124,7 @@ A NetworkConnection handles talking to a remote BitCoin peer at a low level. It
Constructor Summary
-NetworkConnection (java.net.InetAddress remoteIp,
+NetworkConnection (InetAddress remoteIp,
NetworkParameters params,
int bestHeight,
int connectTimeout)
@@ -171,7 +176,7 @@ A NetworkConnection handles talking to a remote BitCoin peer at a low level. It
- java.lang.String
+ String
toString ()
@@ -180,8 +185,7 @@ A NetworkConnection handles talking to a remote BitCoin peer at a low level. It
void
-writeMessage (java.lang.String tag,
- Message message)
+writeMessage (Message message)
Writes the given message out over the network using the protocol tag.
@@ -190,10 +194,10 @@ A NetworkConnection handles talking to a remote BitCoin peer at a low level. It
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
@@ -212,11 +216,11 @@ A NetworkConnection handles talking to a remote BitCoin peer at a low level. It
NetworkConnection
-public NetworkConnection (java.net.InetAddress remoteIp,
+public NetworkConnection (InetAddress remoteIp,
NetworkParameters params,
int bestHeight,
int connectTimeout)
- throws java.io.IOException,
+ throws IOException ,
ProtocolException
Connect to the given IP address using the port specified as part of the network parameters. Once construction
@@ -225,7 +229,7 @@ public NetworkConnection (java.net.InetAddress remoteIp,
Parameters: remoteIp
- IP address to connect to. IPv6 is not currently supported by BitCoin.params
- Defines which network to connect to and details of the protocol.bestHeight
- How many blocks are in our best chainconnectTimeout
- Timeout in milliseconds when initially connecting to peer
Throws:
-java.io.IOException
- if there is a network related failure.
+IOException
- if there is a network related failure.
ProtocolException
- if the version negotiation failed.
@@ -243,14 +247,14 @@ public NetworkConnection (java.net.InetAddress remoteIp,
ping
public void ping ()
- throws java.io.IOException
+ throws IOException
Sends a "ping" message to the remote node. The protocol doesn't presently use this feature much.
Throws:
-java.io.IOException
+IOException
@@ -259,7 +263,7 @@ public void ping ()
shutdown
public void shutdown ()
- throws java.io.IOException
+ throws IOException
Shuts down the network socket. Note that there's no way to wait for a socket to be fully flushed out to the
wire, so if you call this immediately after sending a message it might not get sent.
@@ -267,7 +271,7 @@ public void shutdown ()
Throws:
-java.io.IOException
+IOException
@@ -275,10 +279,10 @@ public void shutdown ()
toString
-public java.lang.String toString ()
+public String toString ()
-Overrides: toString
in class java.lang.Object
+Overrides: toString
in class Object
@@ -290,7 +294,7 @@ public java.lang.String toString ()
readMessage
public Message readMessage ()
- throws java.io.IOException,
+ throws IOException ,
ProtocolException
Reads a network message from the wire, blocking until the message is fully received.
@@ -300,17 +304,16 @@ public ProtocolException - if the message is badly formatted, failed checksum or there was a TCP failure.
-java.io.IOException
+IOException
-
+
writeMessage
-public void writeMessage (java.lang.String tag,
- Message message)
- throws java.io.IOException
+public void writeMessage (Message message)
+ throws IOException
Writes the given message out over the network using the protocol tag. For a Transaction
this should be "tx" for example. It's safe to call this from multiple threads simultaneously,
@@ -319,7 +322,7 @@ public void writeMessage (java.lang.String tag,
Throws:
-java.io.IOException
+IOException
@@ -348,8 +351,10 @@ public
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -394,6 +399,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/NetworkParameters.html b/target/site/apidocs/com/google/bitcoin/core/NetworkParameters.html
similarity index 76%
rename from docs/com/google/bitcoin/core/NetworkParameters.html
rename to target/site/apidocs/com/google/bitcoin/core/NetworkParameters.html
index b15ed1277..46e9634e6 100644
--- a/docs/com/google/bitcoin/core/NetworkParameters.html
+++ b/target/site/apidocs/com/google/bitcoin/core/NetworkParameters.html
@@ -2,10 +2,13 @@
+
+
-NetworkParameters
+NetworkParameters (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ NetworkParameters
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="NetworkParameters";
+ parent.document.title="NetworkParameters (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,15 +93,15 @@ com.google.bitcoin.core
Class NetworkParameters
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.NetworkParameters
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
-public class NetworkParameters extends java.lang.Objectimplements java.io.Serializable
+public class NetworkParameters extends Object implements Serializable
@@ -122,7 +127,7 @@ NetworkParameters contains the data needed for working with an instantiation of
- byte
+ int
addressHeader
@@ -130,6 +135,14 @@ NetworkParameters contains the data needed for working with an instantiation of
+ int
+dumpedPrivateKeyHeader
+
+
+ First byte of a base58 encoded dumped private key.
+
+
+
Block
genesisBlock
@@ -162,7 +175,7 @@ NetworkParameters contains the data needed for working with an instantiation of
- java.math.BigInteger
+ BigInteger
proofOfWorkLimit
@@ -230,10 +243,10 @@ NetworkParameters contains the data needed for working with an instantiation of
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
@@ -284,7 +297,7 @@ public
proofOfWorkLimit
-public java.math.BigInteger proofOfWorkLimit
+public BigInteger proofOfWorkLimit
What the easiest allowable proof of work should be.
@@ -320,9 +333,21 @@ public long packetMagic
addressHeader
-public byte addressHeader
+public int addressHeader
-First byte of a base58 encoded address.
+First byte of a base58 encoded address. See Address
+
+
+
+
+
+
+
+dumpedPrivateKeyHeader
+
+public int dumpedPrivateKeyHeader
+
+First byte of a base58 encoded dumped private key. See DumpedPrivateKey
.
@@ -424,8 +449,10 @@ public static
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -470,6 +497,6 @@ DETAIL: FIELD |
-Peer
+Peer (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ Peer
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="Peer";
+ parent.document.title="Peer (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,12 +93,12 @@ com.google.bitcoin.core
Class Peer
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.Peer
-public class Peer extends java.lang.Object
+public class Peer extends Object
@@ -143,7 +148,7 @@ A Peer handles the high level communication with a BitCoin node. It requires a N
- java.util.concurrent.Future<Block >
+ Future <Block >
getBlock (byte[] blockHash)
@@ -159,7 +164,7 @@ A Peer handles the high level communication with a BitCoin node. It requires a N
- java.util.concurrent.CountDownLatch
+ CountDownLatch
startBlockChainDownload ()
@@ -169,10 +174,10 @@ A Peer handles the high level communication with a BitCoin node. It requires a N
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
@@ -226,8 +231,8 @@ public void start ()
getBlock
-public java.util.concurrent.Future<Block > getBlock (byte[] blockHash)
- throws java.io.IOException
+public Future <Block > getBlock (byte[] blockHash)
+ throws IOException
Asks the connected peer for the block of the given hash, and returns a Future representing the answer.
If you want the block right away and don't mind waiting for it, just call .get() on the result. Your thread
@@ -237,7 +242,7 @@ public java.util.concurrent.Future<IOException
@@ -245,17 +250,17 @@ public java.util.concurrent.Future<
startBlockChainDownload
-public java.util.concurrent.CountDownLatch startBlockChainDownload ()
- throws java.io.IOException
+public CountDownLatch startBlockChainDownload ()
+ throws IOException
Starts an asynchronous download of the block chain. The chain download is deemed to be complete once we've
downloaded the same number of blocks that the peer advertised having in its version handshake message.
-Returns: a CountDownLatch
that can be used to track progress and wait for completion.
+ Returns: a CountDownLatch
that can be used to track progress and wait for completion.
Throws:
-java.io.IOException
+IOException
@@ -284,8 +289,10 @@ public void disconnect ()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -330,6 +337,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/PeerAddress.html b/target/site/apidocs/com/google/bitcoin/core/PeerAddress.html
similarity index 74%
rename from docs/com/google/bitcoin/core/PeerAddress.html
rename to target/site/apidocs/com/google/bitcoin/core/PeerAddress.html
index 715210cd0..2f547266a 100644
--- a/docs/com/google/bitcoin/core/PeerAddress.html
+++ b/target/site/apidocs/com/google/bitcoin/core/PeerAddress.html
@@ -2,10 +2,13 @@
+
+
-PeerAddress
+PeerAddress (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ PeerAddress
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="PeerAddress";
+ parent.document.title="PeerAddress (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,12 +93,12 @@ com.google.bitcoin.core
Class PeerAddress
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.Message
com.google.bitcoin.core.PeerAddress
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
@@ -139,7 +144,7 @@ A PeerAddress holds an IP address and port number representing the network locat
Constructor Summary
-PeerAddress (java.net.InetAddress addr,
+PeerAddress (InetAddress addr,
int port,
int protocolVersion)
@@ -168,7 +173,7 @@ A PeerAddress holds an IP address and port number representing the network locat
void
-bitcoinSerializeToStream (java.io.OutputStream stream)
+bitcoinSerializeToStream (OutputStream stream)
Serializes this message to the provided stream.
@@ -183,7 +188,7 @@ A PeerAddress holds an IP address and port number representing the network locat
- java.lang.String
+ String
toString ()
@@ -202,10 +207,10 @@ A PeerAddress holds an IP address and port number representing the network locat
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
@@ -240,7 +245,7 @@ public PeerAddress (
PeerAddress
-public PeerAddress (java.net.InetAddress addr,
+public PeerAddress (InetAddress addr,
int port,
int protocolVersion)
@@ -259,8 +264,8 @@ public PeerAddress (java.net.InetAddress addr,
bitcoinSerializeToStream
-public void bitcoinSerializeToStream (java.io.OutputStream stream)
- throws java.io.IOException
+public void bitcoinSerializeToStream (OutputStream stream)
+ throws IOException
Description copied from class: Message
Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
@@ -271,7 +276,7 @@ public void bitcoinSerializeToStream (java.io.OutputStream stream)
Throws:
-java.io.IOException
+IOException
@@ -296,10 +301,10 @@ protected void parse ()
toString
-public java.lang.String toString ()
+public String toString ()
-Overrides: toString
in class java.lang.Object
+Overrides: toString
in class Object
@@ -318,8 +323,10 @@ public java.lang.String toString ()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -364,6 +371,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/PeerDiscovery.html b/target/site/apidocs/com/google/bitcoin/core/PeerDiscovery.html
similarity index 80%
rename from docs/com/google/bitcoin/core/PeerDiscovery.html
rename to target/site/apidocs/com/google/bitcoin/core/PeerDiscovery.html
index 65d31d183..533464539 100644
--- a/docs/com/google/bitcoin/core/PeerDiscovery.html
+++ b/target/site/apidocs/com/google/bitcoin/core/PeerDiscovery.html
@@ -2,10 +2,13 @@
+
+
-PeerDiscovery
+PeerDiscovery (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ PeerDiscovery
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="PeerDiscovery";
+ parent.document.title="PeerDiscovery (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,7 +93,7 @@ com.google.bitcoin.core
Interface PeerDiscovery
-All Known Implementing Classes: DnsDiscovery , IrcDiscovery
+All Known Implementing Classes: DnsDiscovery , IrcDiscovery , SeedPeers
@@ -115,7 +120,7 @@ A PeerDiscovery object is responsible for finding addresses of other nodes in th
- java.net.InetSocketAddress[]
+ InetSocketAddress []
getPeers ()
@@ -138,8 +143,8 @@ A PeerDiscovery object is responsible for finding addresses of other nodes in th
getPeers
-java.net.InetSocketAddress[] getPeers ()
- throws PeerDiscoveryException
+InetSocketAddress [] getPeers ()
+ throws PeerDiscoveryException
Returns an array of addresses. This method may block.
@@ -162,8 +167,10 @@ java.net.InetSocketAddress[] getPeers ()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -208,6 +215,6 @@ DETAIL: FIELD | CONSTR | METHO
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/PeerDiscoveryException.html b/target/site/apidocs/com/google/bitcoin/core/PeerDiscoveryException.html
similarity index 54%
rename from docs/com/google/bitcoin/core/PeerDiscoveryException.html
rename to target/site/apidocs/com/google/bitcoin/core/PeerDiscoveryException.html
index 702cbddea..a103d2695 100644
--- a/docs/com/google/bitcoin/core/PeerDiscoveryException.html
+++ b/target/site/apidocs/com/google/bitcoin/core/PeerDiscoveryException.html
@@ -2,10 +2,13 @@
+
+
-PeerDiscoveryException
+PeerDiscoveryException (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ PeerDiscoveryException
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="PeerDiscoveryException";
+ parent.document.title="PeerDiscoveryException (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -52,7 +57,7 @@ function windowTitle()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -88,17 +93,17 @@ com.google.bitcoin.core
Class PeerDiscoveryException
-java.lang.Object
- java.lang.Throwable
- java.lang.Exception
+java.lang.Object
+ java.lang.Throwable
+ java.lang.Exception
com.google.bitcoin.core.PeerDiscoveryException
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
-public class PeerDiscoveryException extends java.lang.Exception
+public class PeerDiscoveryException extends Exception
@@ -123,20 +128,20 @@ java.lang.Object
-PeerDiscoveryException (java.lang.String message)
+PeerDiscoveryException (String message)
-PeerDiscoveryException (java.lang.String message,
- java.lang.Throwable arg0)
+PeerDiscoveryException (String message,
+ Throwable arg0)
-PeerDiscoveryException (java.lang.Throwable arg0)
+PeerDiscoveryException (Throwable arg0)
@@ -155,19 +160,19 @@ java.lang.Object
-Methods inherited from class java.lang.Throwable
+Methods inherited from class java.lang.Throwable
-fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+fillInStackTrace , getCause , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
@@ -194,7 +199,7 @@ public PeerDiscoveryException ()
PeerDiscoveryException
-public PeerDiscoveryException (java.lang.String message)
+public PeerDiscoveryException (String message)
@@ -202,7 +207,7 @@ public PeerDiscoveryException (java.lang.String message)
PeerDiscoveryException
-public PeerDiscoveryException (java.lang.Throwable arg0)
+public PeerDiscoveryException (Throwable arg0)
@@ -210,8 +215,8 @@ public PeerDiscoveryException (java.lang.Throwable arg0)
PeerDiscoveryException
-public PeerDiscoveryException (java.lang.String message,
- java.lang.Throwable arg0)
+public PeerDiscoveryException (String message,
+ Throwable arg0)
@@ -227,8 +232,10 @@ public PeerDiscoveryException (java.lang.String message,
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -244,7 +251,7 @@ public PeerDiscoveryException (java.lang.String message,
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -273,6 +280,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/target/site/apidocs/com/google/bitcoin/core/Ping.html b/target/site/apidocs/com/google/bitcoin/core/Ping.html
new file mode 100644
index 000000000..3a0cb3c3d
--- /dev/null
+++ b/target/site/apidocs/com/google/bitcoin/core/Ping.html
@@ -0,0 +1,258 @@
+
+
+
+
+
+
+
+Ping (BitCoinJ 0.2 API)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+com.google.bitcoin.core
+
+Class Ping
+
+java.lang.Object
+ com.google.bitcoin.core.Message
+ com.google.bitcoin.core.Ping
+
+
+All Implemented Interfaces: Serializable
+
+
+
+public class Ping extends Message
+
+
+
+
+See Also: Serialized Form
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Constructor Summary
+
+
+Ping ()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Methods inherited from class java.lang.Object
+
+
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
+
+
+
+
+
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+Ping
+
+public Ping ()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Copyright © 2011. All Rights Reserved.
+
+
diff --git a/docs/com/google/bitcoin/core/ProtocolException.html b/target/site/apidocs/com/google/bitcoin/core/ProtocolException.html
similarity index 53%
rename from docs/com/google/bitcoin/core/ProtocolException.html
rename to target/site/apidocs/com/google/bitcoin/core/ProtocolException.html
index ba0d0a934..80c4723ae 100644
--- a/docs/com/google/bitcoin/core/ProtocolException.html
+++ b/target/site/apidocs/com/google/bitcoin/core/ProtocolException.html
@@ -2,10 +2,13 @@
+
+
-ProtocolException
+ProtocolException (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ ProtocolException
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="ProtocolException";
+ parent.document.title="ProtocolException (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -51,7 +56,7 @@ function windowTitle()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -88,17 +93,17 @@ com.google.bitcoin.core
Class ProtocolException
-java.lang.Object
- java.lang.Throwable
- java.lang.Exception
+java.lang.Object
+ java.lang.Throwable
+ java.lang.Exception
com.google.bitcoin.core.ProtocolException
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
-public class ProtocolException extends java.lang.Exception
+public class ProtocolException extends Exception
@@ -117,20 +122,20 @@ java.lang.Object
Constructor Summary
-ProtocolException (java.lang.Exception e)
+ProtocolException (Exception e)
-ProtocolException (java.lang.String msg)
+ProtocolException (String msg)
-ProtocolException (java.lang.String msg,
- java.lang.Exception e)
+ProtocolException (String msg,
+ Exception e)
@@ -149,19 +154,19 @@ java.lang.Object
-Methods inherited from class java.lang.Throwable
+Methods inherited from class java.lang.Throwable
-fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+fillInStackTrace , getCause , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
@@ -180,7 +185,7 @@ java.lang.Object
ProtocolException
-public ProtocolException (java.lang.String msg)
+public ProtocolException (String msg)
@@ -188,7 +193,7 @@ public ProtocolException (java.lang.String msg)
ProtocolException
-public ProtocolException (java.lang.Exception e)
+public ProtocolException (Exception e)
@@ -196,8 +201,8 @@ public ProtocolException (java.lang.Exception e)
ProtocolException
-public ProtocolException (java.lang.String msg,
- java.lang.Exception e)
+public ProtocolException (String msg,
+ Exception e)
@@ -213,8 +218,10 @@ public ProtocolException (java.lang.String msg,
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -229,7 +236,7 @@ public ProtocolException (java.lang.String msg,
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -259,6 +266,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/Script.html b/target/site/apidocs/com/google/bitcoin/core/Script.html
similarity index 86%
rename from docs/com/google/bitcoin/core/Script.html
rename to target/site/apidocs/com/google/bitcoin/core/Script.html
index d72ea362f..7fe8c53b5 100644
--- a/docs/com/google/bitcoin/core/Script.html
+++ b/target/site/apidocs/com/google/bitcoin/core/Script.html
@@ -2,10 +2,13 @@
+
+
-Script
+Script (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ Script
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="Script";
+ parent.document.title="Script (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,12 +93,12 @@ com.google.bitcoin.core
Class Script
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.Script
-public class Script extends java.lang.Object
+public class Script extends Object
@@ -270,7 +275,7 @@ BitCoin transactions don't specify what they do directly. Instead
- java.lang.String
+ String
toString ()
@@ -280,10 +285,10 @@ BitCoin transactions don't specify what they do directly. Instead
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
@@ -438,12 +443,12 @@ public void setTracing (boolean value)
toString
-public java.lang.String toString ()
+public String toString ()
Returns the program opcodes as a string, for example "[1234] DUP HAHS160"
-Overrides: toString
in class java.lang.Object
+ Overrides: toString
in class Object
@@ -565,8 +570,10 @@ public boolean run (
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -611,6 +618,6 @@ DETAIL: FIELD |
-ScriptException
+ScriptException (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ ScriptException
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="ScriptException";
+ parent.document.title="ScriptException (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -52,7 +57,7 @@ function windowTitle()
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -88,17 +93,17 @@ com.google.bitcoin.core
Class ScriptException
-java.lang.Object
- java.lang.Throwable
- java.lang.Exception
+java.lang.Object
+ java.lang.Throwable
+ java.lang.Exception
com.google.bitcoin.core.ScriptException
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
-public class ScriptException extends java.lang.Exception
+public class ScriptException extends Exception
@@ -117,14 +122,14 @@ java.lang.Object
Constructor Summary
-ScriptException (java.lang.String msg)
+ScriptException (String msg)
-ScriptException (java.lang.String msg,
- java.lang.Exception e)
+ScriptException (String msg,
+ Exception e)
@@ -143,19 +148,19 @@ java.lang.Object
-Methods inherited from class java.lang.Throwable
+Methods inherited from class java.lang.Throwable
-fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
+fillInStackTrace , getCause , getLocalizedMessage , getMessage , getStackTrace , initCause , printStackTrace , printStackTrace , printStackTrace , setStackTrace , toString
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
@@ -174,7 +179,7 @@ java.lang.Object
ScriptException
-public ScriptException (java.lang.String msg)
+public ScriptException (String msg)
@@ -182,8 +187,8 @@ public ScriptException (java.lang.String msg)
ScriptException
-public ScriptException (java.lang.String msg,
- java.lang.Exception e)
+public ScriptException (String msg,
+ Exception e)
@@ -199,8 +204,10 @@ public ScriptException (java.lang.String msg,
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -216,7 +223,7 @@ public ScriptException (java.lang.String msg,
PREV CLASS
- NEXT CLASS
+ NEXT CLASS
FRAMES
NO FRAMES
@@ -245,6 +252,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/target/site/apidocs/com/google/bitcoin/core/SeedPeers.html b/target/site/apidocs/com/google/bitcoin/core/SeedPeers.html
new file mode 100644
index 000000000..2c6aa8747
--- /dev/null
+++ b/target/site/apidocs/com/google/bitcoin/core/SeedPeers.html
@@ -0,0 +1,299 @@
+
+
+
+
+
+
+
+SeedPeers (BitCoinJ 0.2 API)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+com.google.bitcoin.core
+
+Class SeedPeers
+
+java.lang.Object
+ com.google.bitcoin.core.SeedPeers
+
+
+All Implemented Interfaces: PeerDiscovery
+
+
+
+public class SeedPeers extends Object implements PeerDiscovery
+
+
+
+SeedPeers stores a pre-determined list of Bitcoin node addresses. These nodes are selected based on being
+ active on the network for a long period of time. The intention is to be a last resort way of finding a connection
+ to the network, in case IRC and DNS fail. The list comes from the Bitcoin C++ source code.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Method Summary
+
+
+
+ InetSocketAddress
+getPeer ()
+
+
+ Acts as an iterator, returning the address of each node in the list sequentially.
+
+
+
+ InetSocketAddress []
+getPeers ()
+
+
+ Returns an array containing all the Bitcoin nodes within the list.
+
+
+
+
+
+Methods inherited from class java.lang.Object
+
+
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
+
+
+
+
+
+
+
+
+
+
+
+Constructor Detail
+
+
+
+
+SeedPeers
+
+public SeedPeers (NetworkParameters params)
+
+
+
+
+
+
+
+
+
+getPeer
+
+public InetSocketAddress getPeer ()
+ throws PeerDiscoveryException
+
+Acts as an iterator, returning the address of each node in the list sequentially.
+ Once all the list has been iterated, null will be returned for each subsequent query.
+
+
+
+
+
+
+Returns: InetSocketAddress - The address/port of the next node.
+ Throws:
+PeerDiscoveryException
+
+
+
+
+
+getPeers
+
+public InetSocketAddress [] getPeers ()
+ throws PeerDiscoveryException
+
+Returns an array containing all the Bitcoin nodes within the list.
+
+
+Specified by: getPeers
in interface PeerDiscovery
+
+
+
+Throws:
+PeerDiscoveryException
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Copyright © 2011. All Rights Reserved.
+
+
diff --git a/docs/com/google/bitcoin/core/Sha256Hash.html b/target/site/apidocs/com/google/bitcoin/core/Sha256Hash.html
similarity index 64%
rename from docs/com/google/bitcoin/core/Sha256Hash.html
rename to target/site/apidocs/com/google/bitcoin/core/Sha256Hash.html
index 6d9677267..6e0bf8591 100644
--- a/docs/com/google/bitcoin/core/Sha256Hash.html
+++ b/target/site/apidocs/com/google/bitcoin/core/Sha256Hash.html
@@ -2,10 +2,13 @@
+
+
-Sha256Hash
+Sha256Hash (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ Sha256Hash
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="Sha256Hash";
+ parent.document.title="Sha256Hash (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -51,7 +56,7 @@ function windowTitle()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -88,15 +93,15 @@ com.google.bitcoin.core
Class Sha256Hash
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.Sha256Hash
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
-public class Sha256Hash extends java.lang.Objectimplements java.io.Serializable
+public class Sha256Hash extends Object implements Serializable
@@ -155,7 +160,7 @@ A Sha256Hash just wraps a byte[] so that equals and hashcode work correctly, all
boolean
-equals (java.lang.Object other)
+equals (Object other)
Returns true if the hashes are equal.
@@ -166,11 +171,11 @@ A Sha256Hash just wraps a byte[] so that equals and hashcode work correctly, all
hashCode ()
- Hash code of the byte array as calculated by Object.hashCode()
.
+ Hash code of the byte array as calculated by Object.hashCode()
.
- java.lang.String
+ String
toString ()
@@ -180,10 +185,10 @@ A Sha256Hash just wraps a byte[] so that equals and hashcode work correctly, all
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+clone , finalize , getClass , notify , notifyAll , wait , wait , wait
@@ -238,12 +243,12 @@ public Sha256Hash (byte[] hash)
equals
-public boolean equals (java.lang.Object other)
+public boolean equals (Object other)
Returns true if the hashes are equal.
-Overrides: equals
in class java.lang.Object
+ Overrides: equals
in class Object
@@ -256,12 +261,12 @@ hashCode
public int hashCode ()
-Hash code of the byte array as calculated by Object.hashCode()
. Note the difference between a SHA256
+Hash code of the byte array as calculated by Object.hashCode()
. Note the difference between a SHA256
secure hash and the type of quick/dirty hash used by the Java hashCode method which is designed for use in
hash tables.
-Overrides: hashCode
in class java.lang.Object
+ Overrides: hashCode
in class Object
@@ -272,10 +277,10 @@ public int hashCode ()
toString
-public java.lang.String toString ()
+public String toString ()
-Overrides: toString
in class java.lang.Object
+Overrides: toString
in class Object
@@ -294,8 +299,10 @@ public java.lang.String toString ()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -310,7 +317,7 @@ public java.lang.String toString ()
- PREV CLASS
+ PREV CLASS
NEXT CLASS
FRAMES
@@ -340,6 +347,6 @@ DETAIL: FIELD |
-StoredBlock
+StoredBlock (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ StoredBlock
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="StoredBlock";
+ parent.document.title="StoredBlock (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,15 +93,15 @@ com.google.bitcoin.core
Class StoredBlock
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.StoredBlock
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
-public class StoredBlock extends java.lang.Objectimplements java.io.Serializable
+public class StoredBlock extends Object implements Serializable
@@ -126,7 +131,7 @@ Wraps a
StoredBlock (Block header,
- java.math.BigInteger chainWork,
+ BigInteger chainWork,
int height)
@@ -153,14 +158,14 @@ Wraps a
boolean
-equals (java.lang.Object other)
+equals (Object other)
- java.math.BigInteger
+ BigInteger
getChainWork ()
@@ -208,7 +213,7 @@ Wraps a
- java.lang.String
+ String
toString ()
@@ -218,10 +223,10 @@ Wraps a
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+clone , finalize , getClass , notify , notifyAll , wait , wait , wait
@@ -241,7 +246,7 @@ Wraps a Block header,
- java.math.BigInteger chainWork,
+ BigInteger chainWork,
int height)
@@ -275,7 +280,7 @@ public
getChainWork
-public java.math.BigInteger getChainWork ()
+public BigInteger getChainWork ()
The total sum of work done in this block, and all the blocks below it in the chain. Work is a measure of how
many tries are needed to solve a block. If the target is set to cover 10% of the total hash value space,
@@ -325,10 +330,10 @@ public boolean moreWorkThan (
equals
-public boolean equals (java.lang.Object other)
+public boolean equals (Object other)
-Overrides: equals
in class java.lang.Object
+Overrides: equals
in class Object
@@ -342,7 +347,7 @@ hashCode
public int hashCode ()
-Overrides: hashCode
in class java.lang.Object
+Overrides: hashCode
in class Object
@@ -393,10 +398,10 @@ public
toString
-public java.lang.String toString ()
+public String toString ()
-Overrides: toString
in class java.lang.Object
+Overrides: toString
in class Object
@@ -415,8 +420,10 @@ public java.lang.String toString ()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -461,6 +468,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/Transaction.SigHash.html b/target/site/apidocs/com/google/bitcoin/core/Transaction.SigHash.html
similarity index 67%
rename from docs/com/google/bitcoin/core/Transaction.SigHash.html
rename to target/site/apidocs/com/google/bitcoin/core/Transaction.SigHash.html
index e5f67a132..9dcff73ff 100644
--- a/docs/com/google/bitcoin/core/Transaction.SigHash.html
+++ b/target/site/apidocs/com/google/bitcoin/core/Transaction.SigHash.html
@@ -2,10 +2,13 @@
+
+
-Transaction.SigHash
+Transaction.SigHash (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ Transaction.SigHash
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="Transaction.SigHash";
+ parent.document.title="Transaction.SigHash (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,19 +93,19 @@ com.google.bitcoin.core
Enum Transaction.SigHash
-java.lang.Object
- java.lang.Enum<Transaction.SigHash >
+java.lang.Object
+ java.lang.Enum <Transaction.SigHash >
com.google.bitcoin.core.Transaction.SigHash
-All Implemented Interfaces: java.io.Serializable, java.lang.Comparable<Transaction.SigHash >
+All Implemented Interfaces: Serializable , Comparable <Transaction.SigHash >
Enclosing class: Transaction
-public static enum Transaction.SigHash extends java.lang.Enum<Transaction.SigHash >
+public static enum Transaction.SigHash extends Enum <Transaction.SigHash >
@@ -155,7 +160,7 @@ These constants are a part of a scriptSig signature on the inputs. They define t
static Transaction.SigHash
-valueOf (java.lang.String name)
+valueOf (String name)
Returns the enum constant of this type with the specified name.
@@ -173,19 +178,19 @@ the order they are declared.
-Methods inherited from class java.lang.Enum
+Methods inherited from class java.lang.Enum
-clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
+clone , compareTo , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-getClass, notify, notifyAll, wait, wait, wait
+getClass , notify , notifyAll , wait , wait , wait
@@ -264,7 +269,7 @@ the order they are declared
valueOf
-public static Transaction.SigHash valueOf (java.lang.String name)
+public static Transaction.SigHash valueOf (String name)
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
@@ -275,9 +280,9 @@ not permitted.)
Parameters: name
- the name of the enum constant to be returned.
Returns: the enum constant with the specified name
Throws:
-java.lang.IllegalArgumentException
- if this enum type has no constant
+IllegalArgumentException
- if this enum type has no constant
with the specified name
-java.lang.NullPointerException
- if the argument is null
+NullPointerException
- if the argument is null
@@ -293,8 +298,10 @@ with the specified name
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -339,6 +346,6 @@ DETAIL: ENUM CONSTANTS | FIEL
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/Transaction.html b/target/site/apidocs/com/google/bitcoin/core/Transaction.html
similarity index 78%
rename from docs/com/google/bitcoin/core/Transaction.html
rename to target/site/apidocs/com/google/bitcoin/core/Transaction.html
index 23c6daca2..6e6d550b4 100644
--- a/docs/com/google/bitcoin/core/Transaction.html
+++ b/target/site/apidocs/com/google/bitcoin/core/Transaction.html
@@ -2,10 +2,13 @@
+
+
-Transaction
+Transaction (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ Transaction
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="Transaction";
+ parent.document.title="Transaction (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,16 +93,16 @@ com.google.bitcoin.core
Class Transaction
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.Message
com.google.bitcoin.core.Transaction
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
-public class Transaction extends Message implements java.io.Serializable
+public class Transaction extends Message implements Serializable
@@ -204,7 +209,7 @@ A transaction represents the movement of coins from some addresses to some other
void
-bitcoinSerializeToStream (java.io.OutputStream stream)
+bitcoinSerializeToStream (OutputStream stream)
Serializes this message to the provided stream.
@@ -212,7 +217,7 @@ A transaction represents the movement of coins from some addresses to some other
boolean
-equals (java.lang.Object other)
+equals (Object other)
@@ -227,7 +232,7 @@ A transaction represents the movement of coins from some addresses to some other
- java.lang.String
+ String
getHashAsString ()
@@ -235,7 +240,7 @@ A transaction represents the movement of coins from some addresses to some other
- java.util.List<TransactionInput >
+ List <TransactionInput >
getInputs ()
@@ -243,7 +248,7 @@ A transaction represents the movement of coins from some addresses to some other
- java.math.BigInteger
+ BigInteger
getValueSentFromMe (Wallet wallet)
@@ -251,7 +256,7 @@ A transaction represents the movement of coins from some addresses to some other
- java.math.BigInteger
+ BigInteger
getValueSentToMe (Wallet wallet)
@@ -284,7 +289,7 @@ A transaction represents the movement of coins from some addresses to some other
- java.lang.String
+ String
toString ()
@@ -313,10 +318,10 @@ A transaction represents the movement of coins from some addresses to some other
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, finalize, getClass, notify, notifyAll, wait, wait, wait
+clone , finalize , getClass , notify , notifyAll , wait , wait , wait
@@ -377,7 +382,7 @@ public Transaction (
getInputs
-public java.util.List<TransactionInput > getInputs ()
+public List <TransactionInput > getInputs ()
Returns a read-only list of the inputs of this transaction.
@@ -409,7 +414,7 @@ public
getHashAsString
-public java.lang.String getHashAsString ()
+public String getHashAsString ()
@@ -423,7 +428,7 @@ public java.lang.String getHashAsString ()
getValueSentToMe
-public java.math.BigInteger getValueSentToMe (Wallet wallet)
+public BigInteger getValueSentToMe (Wallet wallet)
Calculates the sum of the outputs that are sending coins to a key in the wallet.
@@ -439,8 +444,8 @@ public java.math.BigInteger getValueSentToMe (
getValueSentFromMe
-public java.math.BigInteger getValueSentFromMe (Wallet wallet)
- throws ScriptException
+public BigInteger getValueSentFromMe (Wallet wallet)
+ throws ScriptException
Calculates the sum of the inputs that are spending coins with keys in the wallet. This requires the
transactions sending coins to those keys to be in the wallet. This method will not attempt to download the
@@ -480,10 +485,10 @@ public boolean isCoinBase ()
toString
-public java.lang.String toString ()
+public String toString ()
-Overrides: toString
in class java.lang.Object
+Overrides: toString
in class Object
@@ -579,8 +584,8 @@ public boolean verifyInput (int inputIndex,
bitcoinSerializeToStream
-public void bitcoinSerializeToStream (java.io.OutputStream stream)
- throws java.io.IOException
+public void bitcoinSerializeToStream (OutputStream stream)
+ throws IOException
Description copied from class: Message
Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
@@ -591,7 +596,7 @@ public void bitcoinSerializeToStream (java.io.OutputStream stream)
Throws:
-java.io.IOException
+IOException
@@ -599,10 +604,10 @@ public void bitcoinSerializeToStream (java.io.OutputStream stream)
equals
-public boolean equals (java.lang.Object other)
+public boolean equals (Object other)
-Overrides: equals
in class java.lang.Object
+Overrides: equals
in class Object
@@ -616,7 +621,7 @@ hashCode
public int hashCode ()
-Overrides: hashCode
in class java.lang.Object
+Overrides: hashCode
in class Object
@@ -635,8 +640,10 @@ public int hashCode ()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -681,6 +688,6 @@ DETAIL: FIELD | CONSTR |&n
-
+Copyright © 2011. All Rights Reserved.
diff --git a/docs/com/google/bitcoin/core/TransactionInput.html b/target/site/apidocs/com/google/bitcoin/core/TransactionInput.html
similarity index 75%
rename from docs/com/google/bitcoin/core/TransactionInput.html
rename to target/site/apidocs/com/google/bitcoin/core/TransactionInput.html
index 487009fd1..0d4fad91e 100644
--- a/docs/com/google/bitcoin/core/TransactionInput.html
+++ b/target/site/apidocs/com/google/bitcoin/core/TransactionInput.html
@@ -2,10 +2,13 @@
+
+
-TransactionInput
+TransactionInput (BitCoinJ 0.2 API)
+
@@ -13,7 +16,7 @@ TransactionInput
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="TransactionInput";
+ parent.document.title="TransactionInput (BitCoinJ 0.2 API)";
}
}
@@ -35,8 +38,10 @@ function windowTitle()
- Package
+ Overview
+ Package
Class
+ Use
Tree
Deprecated
Index
@@ -88,16 +93,16 @@ com.google.bitcoin.core
Class TransactionInput
-java.lang.Object
+java.lang.Object
com.google.bitcoin.core.Message
com.google.bitcoin.core.TransactionInput
-All Implemented Interfaces: java.io.Serializable
+All Implemented Interfaces: Serializable
-public class TransactionInput extends Message implements java.io.Serializable
+public class TransactionInput extends Message implements Serializable
@@ -149,7 +154,8 @@ A transfer of coins from one address to another creates a transaction in which t
Constructor Summary
-TransactionInput (NetworkParameters params,
+TransactionInput (NetworkParameters params,
+ Transaction parentTransaction,
byte[] payload,
int offset)
@@ -169,7 +175,7 @@ A transfer of coins from one address to another creates a transaction in which t
void
-bitcoinSerializeToStream (java.io.OutputStream stream)
+bitcoinSerializeToStream (OutputStream stream)
Serializes this message to the provided stream.
@@ -200,7 +206,7 @@ A transfer of coins from one address to another creates a transaction in which t
- java.lang.String
+ String
toString ()
@@ -219,10 +225,10 @@ A transfer of coins from one address to another creates a transaction in which t
-Methods inherited from class java.lang.Object
+Methods inherited from class java.lang.Object
-clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
@@ -257,10 +263,11 @@ public static final byte[] EMPTY_ARRAY
-
+
TransactionInput
public TransactionInput (NetworkParameters params,
+ Transaction parentTransaction,
byte[] payload,
int offset)
throws ProtocolException
@@ -286,8 +293,8 @@ public TransactionInput (
bitcoinSerializeToStream
-public void bitcoinSerializeToStream (java.io.OutputStream stream)
- throws java.io.IOException
+public void bitcoinSerializeToStream (OutputStream stream)
+ throws IOException
Description copied from class: Message
Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
@@ -298,7 +305,7 @@ public void bitcoinSerializeToStream (java.io.OutputStream stream)
Throws:
-java.io.IOException
+IOException
@@ -360,12 +367,12 @@ public
toString
-public java.lang.String toString ()
+public String toString ()
Returns a human readable debug string.
-Overrides: toString
in class java.lang.Object
+ Overrides: toString
in class Object
@@ -384,8 +391,10 @@ public java.lang.String toString ()