TxtWriter

Framework Components [com.onepg.util]

← Back to Class List

Class Information

Package: com.onepg.util

Class Name: TxtWriter

Description

Text writer class.
  • Print writer wrapper class for text files only.
  • Character set and line separator can be specified.
  • Writing null outputs only a line break.

Method List

close

public void close()
Closes file.

println

public void println(String line)
Outputs row.

Parameters

Name Type Description
line String Row data

flush

public void flush()
Flushes.

getFilePath

public String getFilePath()
Gets file path.

Return Value

String - File path

getLineCount

public long getLineCount()
Gets output row count.

Return Value

long - Output row count