Class FileInputJavaFileManager.InputFileJavaFileObject

  • All Implemented Interfaces:
    javax.tools.FileObject, javax.tools.JavaFileObject
    Enclosing class:
    FileInputJavaFileManager

    private class FileInputJavaFileManager.InputFileJavaFileObject
    extends javax.tools.SimpleJavaFileObject
    A JavaFileObject that reads from a File.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface javax.tools.JavaFileObject

        javax.tools.JavaFileObject.Kind
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String binaryName  
      private java.io.File file  
      • Fields inherited from class javax.tools.SimpleJavaFileObject

        kind, uri
    • Constructor Summary

      Constructors 
      Constructor Description
      InputFileJavaFileObject​(java.io.File file, java.lang.String binaryName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.lang.String getBinaryName()  
      java.lang.CharSequence getCharContent​(boolean ignoreEncodingErrors)  
      java.io.Reader openReader​(boolean ignoreEncodingErrors)  
      • Methods inherited from class javax.tools.SimpleJavaFileObject

        delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openWriter, toString, toUri
      • Methods inherited from class java.lang.Object

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

      • file

        private final java.io.File file
      • binaryName

        private final java.lang.String binaryName
    • Constructor Detail

      • InputFileJavaFileObject

        public InputFileJavaFileObject​(java.io.File file,
                                       java.lang.String binaryName)
    • Method Detail

      • openReader

        public java.io.Reader openReader​(boolean ignoreEncodingErrors)
                                  throws java.io.IOException
        Specified by:
        openReader in interface javax.tools.FileObject
        Overrides:
        openReader in class javax.tools.SimpleJavaFileObject
        Throws:
        java.io.IOException
      • getCharContent

        public java.lang.CharSequence getCharContent​(boolean ignoreEncodingErrors)
                                              throws java.io.IOException
        Specified by:
        getCharContent in interface javax.tools.FileObject
        Overrides:
        getCharContent in class javax.tools.SimpleJavaFileObject
        Throws:
        java.io.IOException
      • getBinaryName

        java.lang.String getBinaryName()