com.pcube.apps.engage.policy
Class CLIScript
java.lang.Object
com.pcube.apps.engage.policy.CLIScript
- All Implemented Interfaces:
- Formattable, java.io.Serializable
public class CLIScript
- extends java.lang.Object
- implements Formattable, java.io.Serializable
- Author:
- rafis To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
- See Also:
- Serialized Form
|
Constructor Summary |
CLIScript(java.io.File scriptFile)
|
|
Method Summary |
void |
fromStream(java.io.BufferedReader in,
Formatter formatter)
read script from XML document: the script is written to a temp file. |
com.pcube.management.common.BufferedInputStream |
getContents()
|
java.io.File |
getFile()
|
void |
toStream(java.io.PrintStream out,
Formatter f)
write script to XML document. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLIScript
public CLIScript(java.io.File scriptFile)
- Parameters:
scriptFile -
fromStream
public void fromStream(java.io.BufferedReader in,
Formatter formatter)
throws ImportExportException
- read script from XML document: the script is written to a temp file.
- Specified by:
fromStream in interface Formattable
- Parameters:
in - formatter -
- Throws:
ImportExportException
getFile
public java.io.File getFile()
- Returns:
getContents
public com.pcube.management.common.BufferedInputStream getContents()
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
toStream
public void toStream(java.io.PrintStream out,
Formatter f)
- write script to XML document.
- Specified by:
toStream in interface Formattable
- Parameters:
out - f -
Copyright © 2013 Cisco Systems, Inc. Confidential.