fllogosm
 Main
 User's Guide
 Developer's Guide
 Admin's Guide
 FAQ
 License Info
 Feedback
 Converting

The nrio.utils.convert class can be used to convert files among platforms.

As of today the following methods are implemented:

translate

    Converts files among PC, Unix, MacIntosh file formats

boolean translate(String mode, String InputFile, String OutputFile)

This method converts the InputFile file into OutputFile, according to mode, and returns true if the conversion has been succesfull, false otherwise.

'Mode' can be one of the following: p2u, u2p, p2m, m2p, u2m, m2u.

  • P stands for PC, and means that the lines are \r\n terminated.
  • U stands for Unix, and means that the lines are \n terminated.
  • M stands for MacIntosh, and means that the lines are \r terminated.