private boolean readTag(HwpStreamReader reader, TagInfo tag) throws IOException {
        // see p.24 of hwp 5.0 format guide

        long recordHeader = reader.uint32();
        if (recordHeader == -1) {
            return false;
        }

        tag.id = recordHeader & 0x3FF;
        tag.level = (recordHeader >> 10) & 0x3FF;
        tag.length = (recordHeader >> 20) & 0xFFF;

        // see p.24 of hwp 5.0 format guide
        if (tag.length == 0xFFF) {
            tag.length = reader.uint32();
        }

        return true;
    }
transfer character stream of HWPTAG_PARA_TEXT to STRING

@param reader
@param datasize
@param buf
@throws IOException
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/hwp/HwpTextExtractorV5.java