OSID Logo
OSID Specifications
filing package
Version 3.0.0
Interfaceosid.filing.File
Implementsosid.filing.DirectoryEntry
Used Byosid.filing.DirectoryAdminSession
osid.filing.FileList
osid.filing.FileLookupSession
osid.filing.FileSystemManagementSession
osid.filing.FileSystemSession
Description

File represents a file in a file system.

MethodhasSize
Description

Tests if this file has a known size.

Returnbooleantrue if this file has a size, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetSize
Description

Gets the size of this file in bytes if hasSize() is true .

Returncardinalthe size of this file
ErrorsILLEGAL_STATEhasSize() is false
CompliancemandatoryThis method must be implemented.
MethodgetFileRecord
Description

Gets the file record corresponding to the given File record Type .This method is used to retrieve an object implementing the requested record. The fileRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(fileRecordType) is true .

Parametersosid.type.TypefileRecordTypethe file record type
Returnosid.filing.records.FileRecordthe file record
ErrorsNULL_ARGUMENTfileRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(fileRecordType) is false
CompliancemandatoryThis method must be implemented.