/** * Parse the tagger identity from the raw buffer. * <p> * This method parses and returns the content of the tagger line, after * taking the tag's character set into account and decoding the tagger * name and email address. This method is fairly expensive and produces a * new PersonIdent instance on each invocation. Callers should invoke this * method only if they are certain they will be outputting the result, and * should cache the return value for as long as necessary to use all * information from it. * * @return identity of the tagger (name, email) and the time the tag * was made by the tagger; null if no tagger line was found. */ public final PersonIdent getTaggerIdent() { final byte[] raw = buffer; final int nameB = RawParseUtils.tagger(raw, 0); if (nameB < 0) return null; return RawParseUtils.parsePersonIdent(raw, nameB); }
/** * Parse the tagger identity from the raw buffer. * <p> * This method parses and returns the content of the tagger line, after * taking the tag's character set into account and decoding the tagger * name and email address. This method is fairly expensive and produces a * new PersonIdent instance on each invocation. Callers should invoke this * method only if they are certain they will be outputting the result, and * should cache the return value for as long as necessary to use all * information from it. * * @return identity of the tagger (name, email) and the time the tag * was made by the tagger; null if no tagger line was found. */ public final PersonIdent getTaggerIdent() { final byte[] raw = buffer; final int nameB = RawParseUtils.tagger(raw, 0); if (nameB < 0) return null; return RawParseUtils.parsePersonIdent(raw, nameB); }
/** * Parse the tagger identity from the raw buffer. * <p> * This method parses and returns the content of the tagger line, after * taking the tag's character set into account and decoding the tagger * name and email address. This method is fairly expensive and produces a * new PersonIdent instance on each invocation. Callers should invoke this * method only if they are certain they will be outputting the result, and * should cache the return value for as long as necessary to use all * information from it. * * @return identity of the tagger (name, email) and the time the tag * was made by the tagger; null if no tagger line was found. */ public final PersonIdent getTaggerIdent() { final byte[] raw = buffer; final int nameB = RawParseUtils.tagger(raw, 0); if (nameB < 0) return null; return RawParseUtils.parsePersonIdent(raw, nameB); }
/** * Parse the tagger identity from the raw buffer. * <p> * This method parses and returns the content of the tagger line, after * taking the tag's character set into account and decoding the tagger * name and email address. This method is fairly expensive and produces a * new PersonIdent instance on each invocation. Callers should invoke this * method only if they are certain they will be outputting the result, and * should cache the return value for as long as necessary to use all * information from it. * * @return identity of the tagger (name, email) and the time the tag * was made by the tagger; null if no tagger line was found. */ public final PersonIdent getTaggerIdent() { final byte[] raw = buffer; final int nameB = RawParseUtils.tagger(raw, 0); if (nameB < 0) return null; return RawParseUtils.parsePersonIdent(raw, nameB); }