Class ClassPathResource

java.lang.Object
migratedb.v1.core.internal.resource.classpath.ClassPathResource
All Implemented Interfaces:
Resource

public class ClassPathResource extends Object implements Resource
  • Constructor Details

    • ClassPathResource

      public ClassPathResource(String name, ClassLoader classLoader)
  • Method Details

    • read

      public Reader read(Charset charset)
      Specified by:
      read in interface Resource
      Returns:
      The contents of the resource.
    • getName

      public String getName()
      Specified by:
      getName in interface Resource
      Returns:
      The path of this resource, separated by forward slashes ("/" on all platforms. Never ends with a slash.
    • describeLocation

      public String describeLocation()
      Specified by:
      describeLocation in interface Resource
      Returns:
      A hint that describes the physical location of this resource (like a full path to a file on disk)
    • toString

      public String toString()
      Overrides:
      toString in class Object