Package de.firemage.autograder.core.file
Class UploadedFile
java.lang.Object
de.firemage.autograder.core.file.UploadedFile
- All Implemented Interfaces:
AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionstatic UploadedFilebuild(SourceInfo source, TempLocation tmpLocation, Consumer<? super LinterStatus> statusConsumer, ClassLoader classLoader) static UploadedFilebuild(Path file, JavaVersion version, TempLocation tmpLocation, Consumer<? super LinterStatus> statusConsumer, ClassLoader classLoader) voidclose()getModel()
-
Method Details
-
build
public static UploadedFile build(Path file, JavaVersion version, TempLocation tmpLocation, Consumer<? super LinterStatus> statusConsumer, ClassLoader classLoader) throws IOException, ModelBuildException, CompilationFailureException -
build
public static UploadedFile build(SourceInfo source, TempLocation tmpLocation, Consumer<? super LinterStatus> statusConsumer, ClassLoader classLoader) throws IOException, CompilationFailureException -
getSource
-
getCompilationResult
-
getModel
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-