parseHeader method
- T input
Parses the header information from the Netpbm image.
If the header is invalid or missing, a FormatException is thrown.
Implementation
NetpbmHeader parseHeader(T input) {
final (header, error, offset) = _parseHeader(input);
if (header == null) {
throw FormatException(error, input);
}
return header;
}