Hierarchy

Properties

nativeObject: { [key: string]: any }

Type declaration

  • [key: string]: any

Gets the mode of FileStream operation.

Android

Ios

Since

0.1

isReadable: boolean

Checks whether the stream is readable.

Android

Ios

Since

0.1

isWritable: boolean

Checks whether the stream is writable.

Android

Ios

Since

0.1

name: string

Gets the name of the file it belongs to.

Android

Ios

Since

0.1

path: string

Gets the path of the file it belongs to.

Android

Ios

Since

0.1

offset: number

iOS only property. Gets the offset of the file stream set as padding.

Ios

seekToEnd?: (() => void)

Type declaration

    • (): void
    • Scans through the end of the file. See the example in the file and blob.

      IOS

      Returns void

source: IFile
streamType: FileStreamType
contentMode: FileContentMode

Gets the content mode of FileStream operation.

Android

Ios

Since

0.1

Methods

  • Closes the FileStream instance. FileStream have to be closed when its job is done.

    Android

    Ios

    Since

    0.1

    Returns void

  • Gets the Blob object from FileStream.

    Android

    Ios

    Deprecated

    since 1.1.10, you may use FileStream.readToEnd() function after you change contentMode of FileStream to FileStream.ContentMode.BINARY.

    Returns IBlob<any, MobileOSProps<{}, IBlobAndroidProps>>

  • Gets all characters or blob content from the file stream depending of IO.FileStream#ContentMode contentMode content mode. If FileStream not opened with IO.FileStream.StreamType#READ mode, returns null.

    Android

    Ios

    Since

    0.1

    Type Parameters

    Returns ContentType

  • Writes all characters or blob content into the file stream depending of IO.FileStream#ContentMode contentMode content mode. If the file stream opened with IO.FileStream.StreamType#READ, returns false.

    Android

    Ios

    Since

    0.1

    Parameters

    Returns boolean

Generated using TypeDoc