class POTResource extends ResourceFilter {

    @Override
    public LanguageBundle parse(InputStream inStream, FilterOptions options)
            throws IOException, ResourceFilterException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, CHAR_SET));
        LanguageBundleBuilder bb = new LanguageBundleBuilder(true);
        String line, value;
        while ((line = reader.readLine()) != null) {
            value = extractMessage(line, reader);
            if (value == null || value.isEmpty()) {
                continue;
            }

            if (line.startsWith(UNTRANSLATED_STRING_PREFIX) || line.startsWith(UNTRANSLATED_PLURAL_STRING_PREFIX)) {

                bb.addResourceString(value, value);
            }
        }
        return bb.build();
    }

}