Class ProgramLicenceReader
java.lang.Object
org.ek9lang.core.ProgramLicenceReader
THE reader of the licence files a program carries, in either form: a program jar's
ProgramLicences.JAR_DIRECTORY entries or a native executable's embedded copy
(EmbeddedLicenceFiles). ek9 -show-licences is its door. Hold one.
Not a Function: reading a program can fail with an IOException, which its door reports.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) List<ProgramLicences.LicenceFile> fromEmbedded(byte[] bytes) The embedded files inbytes; the first of each name counts.The licence filesprogramcarries - a program jar or a native executable - inProgramLicences.FILE_NAMESorder; empty when it carries none (it is not a program EK9 compiled, or EK9 compiled it before programs carried them).
-
Constructor Details
-
ProgramLicenceReader
public ProgramLicenceReader()
-
-
Method Details
-
readFrom
The licence filesprogramcarries - a program jar or a native executable - inProgramLicences.FILE_NAMESorder; empty when it carries none (it is not a program EK9 compiled, or EK9 compiled it before programs carried them).- Throws:
IOException
-
fromEmbedded
The embedded files inbytes; the first of each name counts.
-