|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.as400.access.PrintObject
com.ibm.as400.access.AFPResource
public class AFPResource
The AFPResource class represents a system AFP resource. An instance of this class can be used to manipulate an individual IBM i AFP resource. See AFP Resource Attributes for valid attributes.
Field Summary | |
---|---|
static String |
STR_FNTRSC
|
static String |
STR_FORMDF
|
static String |
STR_OVL
|
static String |
STR_PAGDFN
|
static String |
STR_PAGSEG
|
Constructor Summary | |
---|---|
AFPResource()
Constructs an AFPResource object. |
|
AFPResource(AS400 system,
String resourceName)
Constructs an AFPResource object. |
Method Summary | |
---|---|
PrintObjectInputStream |
getInputStream()
Returns an input stream that can be used to read the contents of the AFP resource. |
String |
getName()
Returns the name of the AFP resource. |
String |
getPath()
Returns the integrated file system pathname of the AFP resource. |
void |
setPath(String path)
Sets the integrated file system pathname of the AFP resource. |
Methods inherited from class com.ibm.as400.access.PrintObject |
---|
addPropertyChangeListener, addVetoableChangeListener, getFloatAttribute, getIntegerAttribute, getSingleFloatAttribute, getSingleIntegerAttribute, getSingleStringAttribute, getStringAttribute, getSystem, removePropertyChangeListener, removeVetoableChangeListener, setSystem, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String STR_FNTRSC
public static final String STR_FORMDF
public static final String STR_OVL
public static final String STR_PAGDFN
public static final String STR_PAGSEG
Constructor Detail |
---|
public AFPResource()
PrintObject.setSystem(com.ibm.as400.access.AS400)
,
setPath(java.lang.String)
public AFPResource(AS400 system, String resourceName)
system
- The system on which this AFP resource exists.resourceName
- The integrated file system name of the AFP resource. The format of
the resource string must be in the format of "/QSYS.LIB/libname.LIB/resourcename.type".
Valid values for type include FNTRSC, FORMDF, OVL, PAGSEG, and PAGDFN.Method Detail |
---|
public PrintObjectInputStream getInputStream() throws AS400Exception, AS400SecurityException, ErrorCompletingRequestException, IOException, InterruptedException, RequestNotSupportedException
AS400Exception
- If the system returns an error message.
AS400SecurityException
- If a security or authority error occurs.
ErrorCompletingRequestException
- If an error occurs before the request completed.
IOException
- If an error occurs while communicating with the system.
InterruptedException
- If this thread is interrupted.
RequestNotSupportedException
- If the requested function is not supported because
the system operating system is not at the correct level.public String getName()
public String getPath()
public void setPath(String path) throws PropertyVetoException
path
- The integrated file system name of the AFP resource. The format of
the resource string must be in the format of "/QSYS.LIB/libname.LIB/resourcename.type".
Valid values for type include FNTRSC, FORMDF, OVL, PAGSEG, and PAGDFN.
PropertyVetoException
- If the change is vetoed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |