java.lang.Object
org.klomp.snark.web.I2PSnarkServlet.BaseFileValidationResult
- Enclosing class:
I2PSnarkServlet
Result of validating a base file for torrent creation. Package-visible for testing.
Field Summary
FieldsConstructor Summary
ConstructorsConstructorDescriptionBaseFileValidationResult(File baseFile, String errorMessage) Records the resolved base file, or why it was rejected.Method Summary
All MethodsModifier and TypeMethodDescription(package private) booleanisValid()Tells whether the base file passed validation.
Field Details
baseFile
The resolved absolute base file; null when validation failed.errorMessage
Human-readable failure reason; null if valid.
Constructor Details
BaseFileValidationResult
Method Details
isValid
boolean isValid()Tells whether the base file passed validation.- Returns:
- true if no error message was recorded