Lines Matching refs:output

95     StringBuilder output;  in doPost()  local
97 output = getOutputForSingleNumber(phoneNumber, defaultCountry, languageCode, regionCode); in doPost()
111 output = getOutputForFile(defaultCountry, fileContents); in doPost()
114 resp.getWriter().println(output); in doPost()
119 StringBuilder output = new StringBuilder(); in getOutputForFile() local
120 output.append("<HTML><HEAD><TITLE>Results generated from phone numbers in the file provided:" in getOutputForFile()
122 output.append("<TABLE align=center border=1>"); in getOutputForFile()
123 output.append("<TH align=center>ID</TH>"); in getOutputForFile()
124 output.append("<TH align=center>Raw phone number</TH>"); in getOutputForFile()
125 output.append("<TH align=center>Pretty formatting</TH>"); in getOutputForFile()
126 output.append("<TH align=center>International format</TH>"); in getOutputForFile()
133 output.append("<TR>"); in getOutputForFile()
134 output.append("<TD align=center>").append(phoneNumberId).append(" </TD> \n"); in getOutputForFile()
135 output.append("<TD align=center>").append(numberStr).append(" </TD> \n"); in getOutputForFile()
146 output.append("<TD align=center>").append(prettyFormat).append(" </TD> \n"); in getOutputForFile()
147 output.append("<TD align=center>").append(internationalFormat).append(" </TD> \n"); in getOutputForFile()
149 output.append("<TD align=center colspan=2>").append(e.toString()).append(" </TD> \n"); in getOutputForFile()
151 output.append("</TR>"); in getOutputForFile()
153 output.append("</BODY></HTML>"); in getOutputForFile()
154 return output; in getOutputForFile()
157 private void appendLine(String title, String data, StringBuilder output) { in appendLine() argument
158 output.append("<TR>"); in appendLine()
159 output.append("<TH>").append(title).append("</TH>"); in appendLine()
160 output.append("<TD>").append(data.length() > 0 ? data : "&nbsp;").append("</TD>"); in appendLine()
161 output.append("</TR>"); in appendLine()
171 StringBuilder output = new StringBuilder(); in getOutputForSingleNumber() local
174 output.append("<DIV>"); in getOutputForSingleNumber()
175 output.append("<TABLE border=1>"); in getOutputForSingleNumber()
176 output.append("<TR><TD colspan=2>Parsing Result</TD></TR>"); in getOutputForSingleNumber()
178 appendLine("country_code", Integer.toString(number.getCountryCode()), output); in getOutputForSingleNumber()
179 appendLine("national_number", Long.toString(number.getNationalNumber()), output); in getOutputForSingleNumber()
180 appendLine("extension", number.getExtension(), output); in getOutputForSingleNumber()
181 appendLine("country_code_source", number.getCountryCodeSource().toString(), output); in getOutputForSingleNumber()
182 appendLine("italian_leading_zero", Boolean.toString(number.isItalianLeadingZero()), output); in getOutputForSingleNumber()
183 appendLine("raw_input", number.getRawInput(), output); in getOutputForSingleNumber()
184 output.append("</TABLE>"); in getOutputForSingleNumber()
185 output.append("</DIV>"); in getOutputForSingleNumber()
191 output.append("<DIV>"); in getOutputForSingleNumber()
192 output.append("<TABLE border=1>"); in getOutputForSingleNumber()
193 output.append("<TR><TD colspan=2>Validation Results</TD></TR>"); in getOutputForSingleNumber()
194 appendLine("Result from isPossibleNumber()", Boolean.toString(isPossible), output); in getOutputForSingleNumber()
197 phoneUtil.isPossibleNumberWithReason(number).toString(), output); in getOutputForSingleNumber()
198 output.append("<TR><TD colspan=2>Note: numbers that are not possible have type " + in getOutputForSingleNumber()
201 appendLine("Result from isValidNumber()", Boolean.toString(isNumberValid), output); in getOutputForSingleNumber()
207 output); in getOutputForSingleNumber()
211 appendLine("Phone Number region", region == null ? "" : region, output); in getOutputForSingleNumber()
212 appendLine("Result from getNumberType()", numberType.toString(), output); in getOutputForSingleNumber()
214 output.append("</TABLE>"); in getOutputForSingleNumber()
215 output.append("</DIV>"); in getOutputForSingleNumber()
217 output.append("<DIV>"); in getOutputForSingleNumber()
218 output.append("<TABLE border=1>"); in getOutputForSingleNumber()
219 output.append("<TR><TD colspan=2>Formatting Results</TD></TR>"); in getOutputForSingleNumber()
222 output); in getOutputForSingleNumber()
224 phoneUtil.formatInOriginalFormat(number, defaultCountry), output); in getOutputForSingleNumber()
225 appendLine("National format", phoneUtil.format(number, PhoneNumberFormat.NATIONAL), output); in getOutputForSingleNumber()
229 output); in getOutputForSingleNumber()
233 output); in getOutputForSingleNumber()
237 output); in getOutputForSingleNumber()
238 output.append("</TABLE>"); in getOutputForSingleNumber()
239 output.append("</DIV>"); in getOutputForSingleNumber()
243 output.append("<DIV>"); in getOutputForSingleNumber()
244 output.append("<TABLE border=1>"); in getOutputForSingleNumber()
245 output.append("<TR><TD colspan=2>AsYouTypeFormatter Results</TD></TR>"); in getOutputForSingleNumber()
251 formatter.inputDigit(inputChar), output); in getOutputForSingleNumber()
253 output.append("</TABLE>"); in getOutputForSingleNumber()
254 output.append("</DIV>"); in getOutputForSingleNumber()
257 output.append("<DIV>"); in getOutputForSingleNumber()
258 output.append("<TABLE border=1>"); in getOutputForSingleNumber()
259 output.append("<TR><TD colspan=2>PhoneNumberOfflineGeocoder Results</TD></TR>"); in getOutputForSingleNumber()
264 output); in getOutputForSingleNumber()
265 output.append("</TABLE>"); in getOutputForSingleNumber()
266 output.append("</DIV>"); in getOutputForSingleNumber()
268 output.append("<DIV>"); in getOutputForSingleNumber()
269 output.append("<TABLE border=1>"); in getOutputForSingleNumber()
270 output.append("<TR><TD colspan=2>PhoneNumberToTimeZonesMapper Results</TD></TR>"); in getOutputForSingleNumber()
274 output); in getOutputForSingleNumber()
275 output.append("</TABLE>"); in getOutputForSingleNumber()
276 output.append("</DIV>"); in getOutputForSingleNumber()
281 output.append("<DIV>"); in getOutputForSingleNumber()
282 output.append("<TABLE border=1>"); in getOutputForSingleNumber()
283 output.append("<TR><TD colspan=2>PhoneNumberToCarrierMapper Results</TD></TR>"); in getOutputForSingleNumber()
288 output); in getOutputForSingleNumber()
289 output.append("</TABLE>"); in getOutputForSingleNumber()
290 output.append("</DIV>"); in getOutputForSingleNumber()
294 output.append(e.toString()); in getOutputForSingleNumber()
296 return output; in getOutputForSingleNumber()