Class TextFile


  • class TextFile
    extends java.lang.Object
    A Text file abstraction
    Since:
    10/02/2006
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String contents  
      private java.lang.String fileName  
    • Constructor Summary

      Constructors 
      Constructor Description
      TextFile​(java.lang.String _fileName, java.lang.String _contents)
      Create the TextFile
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.lang.String getContents()
      Retrieve the contents
      (package private) java.lang.String getFileName()
      Retrieve the fileName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • fileName

        private final java.lang.String fileName
      • contents

        private final java.lang.String contents
    • Constructor Detail

      • TextFile

        TextFile​(java.lang.String _fileName,
                 java.lang.String _contents)
        Create the TextFile
        Parameters:
        _fileName - The file name
        _contents - The contents
    • Method Detail

      • getFileName

        java.lang.String getFileName()
        Retrieve the fileName
        Returns:
        The fileName.
      • getContents

        java.lang.String getContents()
        Retrieve the contents
        Returns:
        The contents.