All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.access.AFPResource

java.lang.Object
   |
   +----com.ibm.as400.access.PrintObject
           |
           +----com.ibm.as400.access.AFPResource

public class AFPResource
extends PrintObject
implements Serializable
The AFPResource class represents an AS/400 AFP resource. An instance of this class can be used to manipulate an individual AS/400 AFP resource. See AFP Resource Attributes for valid attributes.


Variable Index

 o STR_FNTRSC
 o STR_FORMDF
 o STR_OVL
 o STR_PAGDFN
 o STR_PAGSEG

Constructor Index

 o AFPResource()
Constructs an AFPResource object.
 o AFPResource(AS400, String)
Constructs an AFPResource object.

Method Index

 o getInputStream()
Returns an input stream that can be used to read the contents of the AFP resource.
 o getName()
Returns the name of the AFP resource.
 o getPath()
Returns the integrated file system pathname of the AFP resource.
 o setPath(String)
Sets the integrated file system pathname of the AFP resource.

Variables

 o STR_FNTRSC
 public static final String STR_FNTRSC
 o STR_FORMDF
 public static final String STR_FORMDF
 o STR_OVL
 public static final String STR_OVL
 o STR_PAGDFN
 public static final String STR_PAGDFN
 o STR_PAGSEG
 public static final String STR_PAGSEG

Constructors

 o AFPResource
 public AFPResource()
Constructs an AFPResource object. The AS/400 system and the integrated file system name of the AFP resource must be set later. This constructor is provided for visual application builders that support JavaBeans. It is not intended for use by application programmers.

See Also:
setSystem, setPath
 o AFPResource
 public AFPResource(AS400 system,
                    String resourceName)
Constructs an AFPResource object. It uses the system and resource name that identify it on that system. The AS/400 referenced by system must be at V3R7 or later to support using AFP resources.

Parameters:
system - The AS/400 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.

Methods

 o getInputStream
 public PrintObjectInputStream getInputStream() throws AS400Exception, AS400SecurityException, ErrorCompletingRequestException, IOException, InterruptedException, RequestNotSupportedException
Returns an input stream that can be used to read the contents of the AFP resource.

Returns:
The input stream object that can be used to read the contents of this AFP resource.
Throws: AS400Exception
If the AS/400 system returns an error message.
Throws: AS400SecurityException
If a security or authority error occurs.
Throws: ErrorCompletingRequestException
If an error occurs before the request completed.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: InterruptedException
If this thread is interrupted.
Throws: RequestNotSupportedException
If the requested function is not supported because the AS/400 system is not at the correct level.
 o getName
 public String getName()
Returns the name of the AFP resource.

Returns:
The name of the AFP resource.
 o getPath
 public String getPath()
Returns the integrated file system pathname of the AFP resource.

Returns:
The integrated file system pathname of the AFP resource.
 o setPath
 public void setPath(String path) throws PropertyVetoException
Sets the integrated file system pathname of the AFP resource.

Parameters:
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.
Throws: PropertyVetoException
If the change is vetoed.

All Packages  Class Hierarchy  This Package  Previous  Next  Index