Class IdentifiedSource
- java.lang.Object
-
- io.github.mkoncek.classpathless.api.IdentifiedFile
-
- io.github.mkoncek.classpathless.api.IdentifiedSource
-
public class IdentifiedSource extends IdentifiedFile
Java source file with its fully qualified name.
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.charset.Charset
charset
-
Constructor Summary
Constructors Constructor Description IdentifiedSource(ClassIdentifier classIdentifier, byte[] file)
IdentifiedSource(ClassIdentifier classIdentifier, byte[] file, java.nio.charset.Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSourceCode()
-
Methods inherited from class io.github.mkoncek.classpathless.api.IdentifiedFile
equals, getClassIdentifier, getFile, hashCode, toString
-
-
-
-
Constructor Detail
-
IdentifiedSource
public IdentifiedSource(ClassIdentifier classIdentifier, byte[] file, java.nio.charset.Charset charset)
- Parameters:
classIdentifier
- fully qualified name of class.file
- java source code of class.charset
- Character set of source which was used to get the byte[]. Default encoding is used if not provided.
-
IdentifiedSource
public IdentifiedSource(ClassIdentifier classIdentifier, byte[] file)
-
-