Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FileContentWriter

a content writer that writes to a file

Hierarchy

Index

Constructors

Methods

Constructors

constructor

  • Parameters

    • fileDescriptor: number

    Returns FileContentWriter

Methods

close

  • close(): void
  • closes this content writer. Should be called after all writes are complete.

    Returns void

colorize

  • colorize(str: string, clazz?: undefined | string): string
  • returns the colorized version of a string. Typically, content writers that write to files will return the same string and ones writing to a tty will wrap it in appropriate escape sequences.

    Parameters

    • str: string
    • Optional clazz: undefined | string

    Returns string

println

  • println(str: string): void
  • writes a string appended with a newline to the destination

    Parameters

    • str: string

    Returns void

write

  • write(str: string): void
  • Parameters

    • str: string

    Returns void