Lines Matching defs:line

52          * Needed since "next line" may be null due to end of line.
71 final String line = super.readLine();
74 return line;
78 * Read one line, but make this object store it in its queue.
83 final String line = super.readLine();
87 mNextLine = line;
127 * Developers should not directly read a line from this object. Use
192 * @throws VCardException when the stream reached end of line
195 String line;
197 line = getLine();
198 if (line == null) {
200 } else if (line.trim().length() > 0) {
201 return line;
234 * @return True when successful. False when reaching the end of line
240 String line;
243 line = getLine();
244 if (line == null) {
246 } else if (line.trim().length() > 0) {
250 final String[] strArray = line.split(":", 2);
262 + "(Instead, \"" + line + "\" came)");
284 Log.e(LOG_TAG, "Invalid line which looks like some comment was found. Ignored.");
291 Log.e(LOG_TAG, "Invalid line which looks like some comment was found. Ignored.");
306 final String line = getNonEmptyLine();
307 final VCardProperty propertyData = constructPropertyData(line);
363 protected VCardProperty constructPropertyData(String line) throws VCardException {
366 final int length = line.length();
367 if (length > 0 && line.charAt(0) == '#') {
377 final char ch = line.charAt(i);
381 final String propertyName = line.substring(nameIndex, i);
383 propertyData.setRawValue( i < length - 1 ? line.substring(i + 1) : "");
386 final String groupName = line.substring(nameIndex, i);
394 final String propertyName = line.substring(nameIndex, i);
410 handleParams(propertyData, line.substring(nameIndex, i));
413 handleParams(propertyData, line.substring(nameIndex, i));
414 propertyData.setRawValue(i < length - 1 ? line.substring(i + 1) : "");
432 throw new VCardInvalidLineException("Invalid line: \"" + line + "\"");
636 // Some device uses line folding defined in RFC 2425, which is not allowed
651 // But vCard 2.1 requires Quote-Printable when a line contains line break(s).
653 // For more information about line folding,
665 // Thus we roughly look over the next line and confirm it is at least not
671 getLine(); // Drop the next line.
747 * following lines. Excludes the last empty line following to Quoted
757 // qp-line := *(qp-segment transport-padding CRLF)
774 String line;
776 line = getLine();
777 if (line == null) {
780 if (line.trim().endsWith("=")) {
782 pos = line.length() - 1;
783 while (line.charAt(pos) != '=') {
785 builder.append(line.substring(0, pos + 1));
788 builder.append(line);
799 * Given the first line of a property, checks consecutive lines after it and builds a new
800 * multi-line value if it exists.
802 * @param firstString The first line of the property.
811 final String line = peekLine();
812 if (line == null || line.length() == 0) {
816 final String propertyName = getPropertyNameUpperCase(line);
821 // vCard 2.1 does not allow multi-line of adr but microsoft vcards may have it.
822 // We will consider the next line to be a part of a multi-line value if it does not
824 // Consume the line.
826 builder.append(" ").append(line);
837 final String line = peekLine();
838 if (line == null) {
849 String propertyName = getPropertyNameUpperCase(line);
852 "which must not contain semi-colon or colon. Treat the line as next "
854 Log.w(LOG_TAG, "Problematic line: " + line.trim());
858 // Consume the line.
861 if (line.length() == 0) {
864 builder.append(line);
871 * Extracts the property name portion of a given vCard line.
880 * @param line The vCard line.
883 private String getPropertyNameUpperCase(String line) {
884 final int colonIndex = line.indexOf(":");
886 final int semiColonIndex = line.indexOf(";");
897 return line.substring(0, minIndex).toUpperCase();
912 // Apparently invalid line seen in Windows Mobile 6.5. Ignore them.