|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cisco.provisioning.cpe.extensions.configuration.AbstractTFTPFile
com.cisco.provisioning.cpe.extensions.configuration.SimpleTFTPFile
public class SimpleTFTPFile
Simple TFTP file. This class provides an implementation of a TFTPFile interface for named or unamed TFTP files that can be constructed from a byte[] array at creation time. No validation, generation, or mixing operations are required.
AbstractTFTPFile,
TFTPFile,
Serialized Form| Constructor Summary | |
|---|---|
SimpleTFTPFile()
No-arg constructor. |
|
SimpleTFTPFile(byte[] fileBytes)
Use this constructor when no filename tag is used and the configuration file bytes is known at construction time. |
|
SimpleTFTPFile(String filename,
byte[] fileBytes)
Use this constructor when the filename and configuration file bytes are known at construction time. |
|
| Method Summary | |
|---|---|
void |
decode(ByteArrayInputStream in,
com.cisco.csrc.encode.DataDecoder decoder)
Decodes object's data and sets object's variables. |
void |
encode(ByteArrayOutputStream out,
com.cisco.csrc.encode.DataEncoder encoder)
Encodes object's data. |
void |
generate()
Generate the TFTP file. |
void |
mix(String ipAddress,
CSRCProperties properties)
Perform DPE mixing. |
void |
readExternal(ObjectInput in)
Externalizable interface. |
void |
validate()
Validate the TFTP file. |
void |
writeExternal(ObjectOutput out)
Externalizable interface. |
| Methods inherited from class com.cisco.provisioning.cpe.extensions.configuration.AbstractTFTPFile |
|---|
display, equals, getFile, getFilename, getProperties, getProperty, hashCode, paramString, setProperty, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleTFTPFile()
public SimpleTFTPFile(byte[] fileBytes)
fileBytes -
public SimpleTFTPFile(String filename,
byte[] fileBytes)
filename - fileBytes - | Method Detail |
|---|
public void validate()
throws InvalidConfigException
validate in interface TFTPFilevalidate in class AbstractTFTPFileInvalidConfigException - if any errors are encountered during the
validation.
public void generate()
throws InvalidConfigException
generate in interface TFTPFilegenerate in class AbstractTFTPFileInvalidConfigException - if any errors are encountered during the
generation.
public void mix(String ipAddress,
CSRCProperties properties)
throws InvalidConfigException
mix in interface TFTPFilemix in class AbstractTFTPFileipAddress - of the device requesting the TFTP fileproperties - relevant to mixing operation
InvalidConfigException - if any errors are encountered during the
mixing.
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractTFTPFilein - the stream to read data from in order to restore the object
IOException - if I/O errors occur
ClassNotFoundException - If the class for an object being
restored cannot be found.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class AbstractTFTPFileout - the stream to write the object to
IOException - Includes any I/O exceptions that may occur
public void encode(ByteArrayOutputStream out,
com.cisco.csrc.encode.DataEncoder encoder)
encode in interface com.cisco.csrc.encode.Encodableencode in class AbstractTFTPFileout - the output stream to write toencoder - the encoder to use
public void decode(ByteArrayInputStream in,
com.cisco.csrc.encode.DataDecoder decoder)
decode in interface com.cisco.csrc.encode.Encodabledecode in class AbstractTFTPFilein - the input stream to write todecoder - the decoder to use
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||