Class GithubBranchUpdater
java.lang.Object
io.github.projectunified.mcserverupdater.api.GithubBranchUpdater
- All Implemented Interfaces:
Checksum
,InputStreamUpdater
,SimpleChecksum
,Updater
- Direct Known Subclasses:
PatinaUpdater
public abstract class GithubBranchUpdater
extends Object
implements SimpleChecksum, InputStreamUpdater
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String
protected final UpdateBuilder
protected final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GithubBranchUpdater
(VersionQuery versionQuery, String repo) -
Method Summary
Modifier and TypeMethodDescriptionabstract String
getCurrentChecksum
(File file) abstract String
abstract Pattern
void
setChecksum
(File file) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.projectunified.mcserverupdater.api.InputStreamUpdater
update
Methods inherited from interface io.github.projectunified.mcserverupdater.api.SimpleChecksum
checksum
-
Field Details
-
updateBuilder
-
version
-
build
-
-
Constructor Details
-
GithubBranchUpdater
-
-
Method Details
-
getBranch
-
getFilePattern
-
getDefaultVersion
-
getChecksum
- Specified by:
getChecksum
in interfaceSimpleChecksum
-
setChecksum
- Specified by:
setChecksum
in interfaceChecksum
- Throws:
Exception
-
getInputStream
- Specified by:
getInputStream
in interfaceInputStreamUpdater
-
getCurrentChecksum
- Specified by:
getCurrentChecksum
in interfaceSimpleChecksum
- Throws:
Exception
-
getDebugConsumer
- Specified by:
getDebugConsumer
in interfaceUpdater
-