## Uses of Class
net.i2p.data.DataFormatException

Packages that use DataFormatException
net.i2p.client: Implements the base I2P SDK for developing applications that communicate through I2P.
net.i2p.client.datagram: Provides a standard way for reading and writing messages transferred over I2P so that the recipient has an authenticated mechanism to reply to it.
net.i2p.crypto
net.i2p.data
net.i2p.data.i2cp
net.i2p.data.i2np
net.i2p.i2ptunnel
net.i2p.router

Uses of DataFormatException in net.i2p.client

Methods in net.i2p.client that throw DataFormatException
`void` `ATalk.connect()` Actually start up the connection to the I2P network.

Uses of DataFormatException in net.i2p.client.datagram

Methods in net.i2p.client.datagram that throw DataFormatException
`void` `I2PDatagramDissector.loadI2PDatagram(byte[] dgram)` Load an I2P repliable datagram into the dissector.

Uses of DataFormatException in net.i2p.crypto

Methods in net.i2p.crypto that throw DataFormatException
`void` `PersistentSessionKeyManager.saveState(java.io.OutputStream out)` Write the session key data to the given stream
`void` `PersistentSessionKeyManager.loadState(java.io.InputStream in)` Load the session key data from the given stream
`byte[]` `ElGamalAESEngine.decrypt(byte[] data, PrivateKey targetPrivateKey)` Decrypt the message using the given private key.

`(package private) byte[]`

`ElGamalAESEngine.decryptNewSession(byte[] data, PrivateKey targetPrivateKey, java.util.Set foundTags, SessionKey usedKey, SessionKey foundKey)`
scenario 1: Begin with 222 bytes, ElG encrypted, containing: - 32 byte SessionKey - 32 byte pre-IV for the AES - 158 bytes of random padding Then encrypt with AES using that session key and the first 16 bytes of the SHA256 of the pre-IV, using the decryptAESBlock method & structure.

`(package private) byte[]` `ElGamalAESEngine.decryptExistingSession(byte[] data, SessionKey key, PrivateKey targetPrivateKey, java.util.Set foundTags, SessionKey usedKey, SessionKey foundKey)` scenario 2: The data begins with 32 byte session tag, which also serves as the preIV.
`(package private) byte[]` `ElGamalAESEngine.decryptAESBlock(byte[] encrypted, SessionKey key, byte[] iv, byte[] sentTag, java.util.Set foundTags, SessionKey foundKey)` Decrypt the AES data with the session key and IV.
`(package private) byte[]` `ElGamalAESEngine.decryptAESBlock(byte[] encrypted, int offset, int encryptedLen, SessionKey key, byte[] iv, byte[] sentTag, java.util.Set foundTags, SessionKey foundKey)`

Uses of DataFormatException in net.i2p.data

Methods in net.i2p.data that throw DataFormatException
`void` `TunnelId.readBytes(java.io.InputStream in)`
`void` `TunnelId.writeBytes(java.io.OutputStream out)`
`int` `TunnelId.writeBytes(byte[] target, int offset)`
`void` `SigningPublicKey.readBytes(java.io.InputStream in)`
`void` `SigningPublicKey.writeBytes(java.io.OutputStream out)`
`void` `SigningPrivateKey.readBytes(java.io.InputStream in)`
`void` `SigningPrivateKey.writeBytes(java.io.OutputStream out)`
`void` `Signature.readBytes(java.io.InputStream in)`
`void` `Signature.writeBytes(java.io.OutputStream out)`
`void` `SessionTag.readBytes(java.io.InputStream in)`
`void` `SessionTag.writeBytes(java.io.OutputStream out)`
`void` `SessionKey.readBytes(java.io.InputStream in)`
`void` `SessionKey.writeBytes(java.io.OutputStream out)`
`void` `RouterInfo.sign(SigningPrivateKey key)` Sign the structure using the supplied signing key
`void` `RouterInfo.readBytes(java.io.InputStream in)`
`void` `RouterInfo.writeBytes(java.io.OutputStream out)`
`void` `RouterIdentity.readBytes(java.io.InputStream in)`
`void` `RouterIdentity.writeBytes(java.io.OutputStream out)`
`void` `RouterAddress.readBytes(java.io.InputStream in)`
`void` `RouterAddress.writeBytes(java.io.OutputStream out)`
`void` `PublicKey.readBytes(java.io.InputStream in)`
`void` `PublicKey.writeBytes(java.io.OutputStream out)`
`void` `PrivateKey.readBytes(java.io.InputStream in)`
`void` `PrivateKey.writeBytes(java.io.OutputStream out)`
`void` `Payload.readBytes(java.io.InputStream in)`
`void` `Payload.writeBytes(java.io.OutputStream out)`
`void` `LeaseSet.sign(SigningPrivateKey key)` Sign the structure using the supplied signing key
`void` `LeaseSet.readBytes(java.io.InputStream in)`
`void` `LeaseSet.writeBytes(java.io.OutputStream out)`
`void` `Lease.readBytes(java.io.InputStream in)`
`void` `Lease.writeBytes(java.io.OutputStream out)`
`void` `Hash.readBytes(java.io.InputStream in)`
`void` `Hash.writeBytes(java.io.OutputStream out)`
`void` `Destination.readBytes(java.io.InputStream in)`
`void` `Destination.writeBytes(java.io.OutputStream out)`
`int` `Destination.readBytes(byte[] source, int offset)`
`void` `DataStructureImpl.fromBase64(java.lang.String data)`
`void` `DataStructureImpl.fromByteArray(byte[] data)`
`void` `DataStructure.readBytes(java.io.InputStream in)` Load up the current object with data from the given stream.
`void` `DataStructure.writeBytes(java.io.OutputStream out)` Write out the data structure to the stream, using the format defined in the I2P data structure specification.
`void` `DataStructure.fromBase64(java.lang.String data)` Load the structure from the base 64 encoded data provided
`void` `DataStructure.fromByteArray(byte[] data)`
`static java.util.Properties` `DataHelper.readProperties(java.io.InputStream rawStream)` Read a mapping from the stream, as defined by the I2P data structure spec, and store it into a Properties object.
`static void` `DataHelper.writeProperties(java.io.OutputStream rawStream, java.util.Properties props)` Write a mapping to the stream, as defined by the I2P data structure spec, and store it into a Properties object.
`static int` `DataHelper.toProperties(byte[] target, int offset, java.util.Properties props)`
`static int` `DataHelper.fromProperties(byte[] source, int offset, java.util.Properties target)`
`static long` `DataHelper.readLong(java.io.InputStream rawStream, int numBytes)` Read the stream for an integer as defined by the I2P data structure specification.
`static void` `DataHelper.writeLong(java.io.OutputStream rawStream, int numBytes, long value)` Write an integer as defined by the I2P data structure specification to the stream.
`static java.util.Date` `DataHelper.readDate(java.io.InputStream in)` Read in a date from the stream as specified by the I2P data structure spec.
`static void` `DataHelper.writeDate(java.io.OutputStream out, java.util.Date date)` Write out a date to the stream as specified by the I2P data structure spec.
`static java.util.Date` `DataHelper.fromDate(byte[] src, int offset)`
`static java.lang.String` `DataHelper.readString(java.io.InputStream in)` Read in a string from the stream as specified by the I2P data structure spec.
`static void` `DataHelper.writeString(java.io.OutputStream out, java.lang.String string)` Write out a string to the stream as specified by the I2P data structure spec.
`static java.lang.Boolean` `DataHelper.readBoolean(java.io.InputStream in)` Read in a boolean as specified by the I2P data structure spec.
`static void` `DataHelper.writeBoolean(java.io.OutputStream out, java.lang.Boolean bool)` Write out a boolean as specified by the I2P data structure spec.
`void` `Certificate.readBytes(java.io.InputStream in)`
`void` `Certificate.writeBytes(java.io.OutputStream out)`
`int` `Certificate.readBytes(byte[] source, int offset)`
`void` `Address.readBytes(java.io.InputStream in)`
`void` `Address.writeBytes(java.io.OutputStream out)`

Constructors in net.i2p.data that throw DataFormatException
`SigningPublicKey(java.lang.String base64Data)` constructs from base64
`SigningPrivateKey(java.lang.String base64Data)` constructs from base64
`PublicKey(java.lang.String base64Data)` constructs from base64
`PrivateKey(java.lang.String base64Data)` constructs from base64
`Destination(java.lang.String s)` alternative constructor which takes a base64 string representation

Uses of DataFormatException in net.i2p.data.i2cp

Methods in net.i2p.data.i2cp that throw DataFormatException
`void` `SessionId.readBytes(java.io.InputStream in)`
`void` `SessionId.writeBytes(java.io.OutputStream out)`
`void` `SessionConfig.signSessionConfig(SigningPrivateKey signingKey)` Sign the structure using the supplied private key
`void` `SessionConfig.readBytes(java.io.InputStream rawConfig)`
`void` `SessionConfig.writeBytes(java.io.OutputStream out)`
`void` `MessageId.readBytes(java.io.InputStream in)`
`void` `MessageId.writeBytes(java.io.OutputStream out)`
`void` `I2CPMessageImpl.readBytes(java.io.InputStream in)`
`void` `I2CPMessageImpl.writeBytes(java.io.OutputStream out)`
`void` `AbuseSeverity.readBytes(java.io.InputStream in)`
`void` `AbuseSeverity.writeBytes(java.io.OutputStream out)`
`void` `AbuseReason.readBytes(java.io.InputStream in)`
`void` `AbuseReason.writeBytes(java.io.OutputStream out)`

Uses of DataFormatException in net.i2p.data.i2np

Methods in net.i2p.data.i2np that throw DataFormatException
`void` `TunnelVerificationStructure.readBytes(java.io.InputStream in)`
`void` `TunnelVerificationStructure.writeBytes(java.io.OutputStream out)`
`void` `TunnelSigningPublicKey.readBytes(java.io.InputStream in)`
`void` `TunnelSigningPublicKey.writeBytes(java.io.OutputStream out)`
`void` `TunnelSigningPrivateKey.readBytes(java.io.InputStream in)`
`void` `TunnelSigningPrivateKey.writeBytes(java.io.OutputStream out)`
`void` `TunnelSessionKey.readBytes(java.io.InputStream in)`
`void` `TunnelSessionKey.writeBytes(java.io.OutputStream out)`
`void` `I2NPMessageImpl.readBytes(java.io.InputStream in)`
`void` `I2NPMessageImpl.writeBytes(java.io.OutputStream out)`
`void` `GarlicClove.readBytes(java.io.InputStream in)`
`int` `GarlicClove.readBytes(byte[] source, int offset)`
`void` `GarlicClove.writeBytes(java.io.OutputStream out)`
`void` `EndPointPublicKey.readBytes(java.io.InputStream in)`
`void` `EndPointPublicKey.writeBytes(java.io.OutputStream out)`
`void` `EndPointPrivateKey.readBytes(java.io.InputStream in)`
`void` `EndPointPrivateKey.writeBytes(java.io.OutputStream out)`
`void` `DeliveryInstructions.readBytes(java.io.InputStream in)`
`int` `DeliveryInstructions.readBytes(byte[] data, int offset)`
`void` `DeliveryInstructions.writeBytes(java.io.OutputStream out)`

Uses of DataFormatException in net.i2p.i2ptunnel

Methods in net.i2p.i2ptunnel that throw DataFormatException
`static Destination` `I2PTunnel.destFromName(java.lang.String name)` Generates a Destination from a name.

Uses of DataFormatException in net.i2p.router

Methods in net.i2p.router that throw DataFormatException
`void` `TunnelSettings.readBytes(java.io.InputStream in)`
`void` `TunnelSettings.writeBytes(java.io.OutputStream out)`
`void` `LeaseSetKeys.readBytes(java.io.InputStream in)`
`void` `LeaseSetKeys.writeBytes(java.io.OutputStream out)`