OpenCard  
 
OCF, the OpenCard Framework is a standard Java framework for working with Smart Cards.  
 

com.ibm.opencard.script
Class Script

java.lang.Object
  |
  +--com.ibm.opencard.script.Script
Direct Known Subclasses:
mfc35, mfc40, mfc41, mfc41F, SBInitScript, test

public abstract class Script
extends java.lang.Object

A Script is a set of procedures to be executed by an IBM CardAgent. It does contain card commands, but the CardAgent is interpreting and modifying the data before sending them to the CardTerminal. AgentScript is the abstract base class of all scripts. Every individual concrete script is a distinct subclass of AgentScript. Instances are not created. Rather the class has class methods only.

Version:
$Id: Script.java,v 1.1 1999/12/02 16:06:06 damke Exp $

Constructor Summary
Script()
           
 
Method Summary
abstract  TLVBuffer buffer()
          The Cardagent operates on the entire script buffer.
protected static TLVBuffer restore(java.lang.String fileSpec)
          Load the contents of the given file into a TLV buffer and return this buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Script

public Script()
Method Detail

buffer

public abstract TLVBuffer buffer()
The Cardagent operates on the entire script buffer. It does curently not care to access parts or procedures of the script in any other way than reading the entire buffer itself

restore

protected static TLVBuffer restore(java.lang.String fileSpec)
                            throws java.io.IOException
Load the contents of the given file into a TLV buffer and return this buffer.
Throws:
java.io.IOException - The file from which the script should be restored could not be read.