Class Utils.SourceGetter

  • Enclosing class:
    Utils

    public static class Utils.SourceGetter
    extends Object
    Given a source object, allow to retrieve (when possible) the related url, the related file or the original input source object itself.
    • Constructor Summary

      Constructors 
      Constructor Description
      SourceGetter​(Object inputSource)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      File getFile()
      Return the File (if any) of the source object
      Object getSource()
      Return the original source object
      URL getUrl()
      Return the URL (if any) of the source object
      • Methods inherited from class Object

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

      • SourceGetter

        public SourceGetter​(Object inputSource)
    • Method Detail

      • getFile

        public File getFile()
        Return the File (if any) of the source object
      • getUrl

        public URL getUrl()
        Return the URL (if any) of the source object
      • getSource

        public Object getSource()
        Return the original source object