|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.bitcoin.core.Message
com.google.bitcoin.core.ChildMessage
com.google.bitcoin.core.TransactionOutPoint
public class TransactionOutPoint
This message is a reference or pointer to an output of a different transaction.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.bitcoin.core.Message |
|---|
Message.LazyParseException |
| Field Summary |
|---|
| Fields inherited from class com.google.bitcoin.core.Message |
|---|
bytes, checksum, cursor, length, MAX_SIZE, offset, params, parsed, parseLazy, parseRetain, protocolVersion, recached, UNKNOWN_LENGTH |
| Constructor Summary | |
|---|---|
TransactionOutPoint(NetworkParameters params,
byte[] payload,
int offset)
/** Deserializes the message. |
|
TransactionOutPoint(NetworkParameters params,
byte[] payload,
int offset,
Message parent,
boolean parseLazy,
boolean parseRetain)
Deserializes the message. |
|
TransactionOutPoint(NetworkParameters params,
long index,
Sha256Hash hash)
|
|
TransactionOutPoint(NetworkParameters params,
long index,
Transaction fromTx)
|
|
| Method Summary | |
|---|---|
protected void |
bitcoinSerializeToStream(OutputStream stream)
Serializes this message to the provided stream. |
boolean |
equals(Object other)
|
ECKey |
getConnectedKey(Wallet wallet)
Returns the ECKey identified in the connected output, for either pay-to-address scripts or pay-to-key scripts. |
TransactionOutput |
getConnectedOutput()
An outpoint is a part of a transaction input that points to the output of another transaction. |
Sha256Hash |
getHash()
Returns the hash of the transaction this outpoint references/spends/is connected to. |
long |
getIndex()
|
int |
getMessageSize()
This should be overridden to extract correct message size in the case of lazy parsing. |
int |
hashCode()
|
protected void |
parseLite()
Perform the most minimal parse possible to calculate the length of the message. |
void |
setIndex(long index)
|
String |
toString()
|
| Methods inherited from class com.google.bitcoin.core.ChildMessage |
|---|
adjustLength, adjustLength, setParent, unCache |
| Methods inherited from class com.google.bitcoin.core.Message |
|---|
bitcoinSerialize, bitcoinSerialize, ensureParsed, getParams, isCached, isParsed, isRecached, maybeParse, unsafeBitcoinSerialize |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionOutPoint(NetworkParameters params,
long index,
@Nullable
Transaction fromTx)
public TransactionOutPoint(NetworkParameters params,
long index,
Sha256Hash hash)
public TransactionOutPoint(NetworkParameters params,
byte[] payload,
int offset)
throws ProtocolException
ProtocolException
public TransactionOutPoint(NetworkParameters params,
byte[] payload,
int offset,
Message parent,
boolean parseLazy,
boolean parseRetain)
throws ProtocolException
params - NetworkParameters object.offset - The location of the first msg byte within the array.parseLazy - Whether to perform a full parse immediately or delay until a read is requested.parseRetain - Whether to retain the backing byte array for quick reserialization.
If true and the backing byte array is invalidated due to modification of a field then
the cached bytes may be repopulated and retained if the message is serialized again in the future.
ProtocolException| Method Detail |
|---|
protected void parseLite()
throws ProtocolException
Message
parseLite in class MessageProtocolExceptionpublic int getMessageSize()
Message
getMessageSize in class Message
protected void bitcoinSerializeToStream(OutputStream stream)
throws IOException
Message
IOException@Nullable public TransactionOutput getConnectedOutput()
@Nullable
public ECKey getConnectedKey(Wallet wallet)
throws ScriptException
ScriptExceptionpublic String toString()
toString in class Objectpublic Sha256Hash getHash()
getHash in class Messagepublic long getIndex()
public void setIndex(long index)
public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||