Package com.samsthenerd.inline.utils
Interface ImgFormatParser
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ImgFormatParser
getFormatParser
(String contentType) static void
static com.mojang.datafixers.util.Either
<ImgFormatParser.ImgParseResult, String> parseGIF
(InputStream inStream, String contentType) static com.mojang.datafixers.util.Either
<ImgFormatParser.ImgParseResult, String> parseImgSTBI
(InputStream inStream, String contentType) static com.mojang.datafixers.util.Either
<ImgFormatParser.ImgParseResult, String> parsePNG
(InputStream inStream, String contentType) com.mojang.datafixers.util.Either
<ImgFormatParser.ImgParseResult, String> tryParse
(InputStream inStream, String contentType)
-
Field Details
-
PARSERS
-
-
Method Details
-
tryParse
com.mojang.datafixers.util.Either<ImgFormatParser.ImgParseResult,String> tryParse(InputStream inStream, String contentType) -
loadBuiltinParsers
static void loadBuiltinParsers() -
getFormatParser
-
parsePNG
static com.mojang.datafixers.util.Either<ImgFormatParser.ImgParseResult,String> parsePNG(InputStream inStream, String contentType) -
parseGIF
static com.mojang.datafixers.util.Either<ImgFormatParser.ImgParseResult,String> parseGIF(InputStream inStream, String contentType) -
parseImgSTBI
static com.mojang.datafixers.util.Either<ImgFormatParser.ImgParseResult,String> parseImgSTBI(InputStream inStream, String contentType)
-