This class represents a stored entity on the platform. Typically, this can be equated to a file, although no guarantee is made as to the storage mechanism or implementation. The storage lifetime of a resource is until it is deleted, either by the application or by the user. Therefore, data saved during one run of an application should be available upon the next run; this is not considered a cache storage mechanism.
maxLength of a resource can be set, although the resultant value
may differ from what was requested. Maximum sizes are governed by platform
limits as well as available storage space.
|access||name||type||Can Read||Can Init||Can Write||Default Value||description|
The current size of the resource in bytes.
The maximum size of the resource, in bytes.
The maximum size of the resource, in bytes. Use this variable to adjust the maximum size allowable for this individual resource.
The base name of resource.
The base name of resource. Note that no path information is available from this object.
Indicates whether reading from the resource is allowed.
Indicates whether writing to the resource is allowed.
- public openInputStream() : java.io.InputStream
- public openOutputStream(overwrite: Boolean) : java.io.OutputStream
OutputStreamto the resource.
OutputStreamto the resource. The amount of data that can be written to the stream may be restricted.
- Whether to overwrite existing data, if any, as opposed to appending to existing data.
- An OutputStream for the Resource.