private String getParseTag() { if (stream.eof()) { error("Expected an id tag, not end of file."); } if (stream.eol()) { error("Expected an id tag, not end of line"); } int i = stream.indexOf(':'); if (i == -1) { error("Could not find tag separator ':' in line."); } String tag = stream.rest().substring(0, i); stream.advance(i + 1); parseWs(); parseZeroOrMoreWs(); // Memory optimization // re-use the tag string OboFormatTag formatTag = OBOFormatConstants.getTag(tag); if (formatTag != null) { tag = formatTag.getTag(); } return mapDeprecatedTag(tag); }
private String getParseTag() { if (stream.eof()) { error("Expected an id tag, not end of file."); } if (stream.eol()) { error("Expected an id tag, not end of line"); } int i = stream.indexOf(':'); if (i == -1) { error("Could not find tag separator ':' in line."); } String tag = stream.rest().substring(0, i); stream.advance(i + 1); parseWs(); parseZeroOrMoreWs(); // Memory optimization // re-use the tag string OboFormatTag formatTag = OBOFormatConstants.getTag(tag); if (formatTag != null) { tag = formatTag.getTag(); } return mapDeprecatedTag(tag); }
private String getParseTag() { if (stream.eof()) { error("Expected an id tag, not end of file."); } if (stream.eol()) { error("Expected an id tag, not end of line"); } int i = stream.indexOf(':'); if (i == -1) { error("Could not find tag separator ':' in line."); } String tag = stream.rest().substring(0, i); stream.advance(i + 1); parseWs(); parseZeroOrMoreWs(); // Memory optimization // re-use the tag string OboFormatTag formatTag = OBOFormatConstants.getTag(tag); if (formatTag != null) { tag = formatTag.getTag(); } return mapDeprecatedTag(tag); }
private String getParseTag() { if (stream.eof()) { error("Expected an id tag, not end of file."); } if (stream.eol()) { error("Expected an id tag, not end of line"); } int i = stream.indexOf(':'); if (i == -1) { error("Could not find tag separator ':' in line."); } String tag = stream.rest().substring(0, i); stream.advance(i + 1); parseWs(); parseZeroOrMoreWs(); // Memory optimization // re-use the tag string OboFormatTag formatTag = OBOFormatConstants.getTag(tag); if (formatTag != null) { tag = formatTag.getTag(); } return mapDeprecatedTag(tag); }
private String getParseTag() throws OBOFormatParserException { if (s.eof()) { error("Expected an id tag, not end of file."); } if (s.eol()) { error("Expected an id tag, not end of line"); } int i = s.indexOf(':'); if (i == -1) { error("Could not find tag separator ':' in line."); } String tag = s.rest().substring(0, i); s.advance(i+1); parseWs(); parseZeroOrMoreWs(); // Memory optimization // re-use the tag string OboFormatTag formatTag = OBOFormatConstants.getTag(tag); if (formatTag != null) { tag = formatTag.getTag(); } return mapDeprecatedTag(tag); }