Class Source

  • All Implemented Interfaces:
    java.io.Serializable

    public class Source
    extends java.lang.Object
    implements java.io.Serializable
    Describes a source file. Note that source files are always filtered, unlike resources that can be non-filtered.
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String encoding
      The encoding to be used when reading/writing this file.
      private java.lang.String file
      The source file.
    • Constructor Summary

      Constructors 
      Constructor Description
      Source()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getEncoding()
      Get the encoding to be used when reading/writing this file.
      java.lang.String getFile()
      Get the source file.
      void setEncoding​(java.lang.String encoding)
      Set the encoding to be used when reading/writing this file.
      void setFile​(java.lang.String file)
      Set the source file.
      • Methods inherited from class java.lang.Object

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

      • file

        private java.lang.String file
        The source file.
      • encoding

        private java.lang.String encoding
        The encoding to be used when reading/writing this file. Platform encoding is used by default, or ISO-8859-1 when filename ends in .properties
    • Constructor Detail

      • Source

        public Source()
    • Method Detail

      • getEncoding

        public java.lang.String getEncoding()
        Get the encoding to be used when reading/writing this file. Platform encoding is used by default, or ISO-8859-1 when filename ends in .properties
        Returns:
        String
      • getFile

        public java.lang.String getFile()
        Get the source file.
        Returns:
        String
      • setEncoding

        public void setEncoding​(java.lang.String encoding)
        Set the encoding to be used when reading/writing this file. Platform encoding is used by default, or ISO-8859-1 when filename ends in .properties
        Parameters:
        encoding - a encoding object.
      • setFile

        public void setFile​(java.lang.String file)
        Set the source file.
        Parameters:
        file - a file object.