Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IFile

interface IFile
Extends com.amazon.apmf.IMutableByteBuffer Represents a file system object that can be read from or written to.

Methods

getDirEntry()

IDirEntry* getDirEntry()
Returns a DirEntry object representing the file.

Returns

IDirEntry* IDirEntry object.

makeInputStream()

com.amazon.kepler.io.IBinaryInputStream* makeInputStream()
Creates an input stream from the file.

Returns

com.amazon.kepler.io.IBinaryInputStream* IBinaryInputStream object.

Throws

  • PermissionDeniedError — when permissions do not allow an operation to be completed.
  • IoError — if an error occurs during stream creation.

makeOutputStream()

com.amazon.kepler.io.IBinaryOutputStream* makeOutputStream()
Creates an output stream from the file.

Returns

com.amazon.kepler.io.IBinaryOutputStream* IBinaryOutputStream object.

Throws

  • PermissionDeniedError — when permissions do not allow an operation to be completed.
  • IoError — if an error occurs during stream creation.

Last modified on October 22, 2026