Searched refs:line (Results 1 - 25 of 44) sorted by relevance

12

/javamail/mail/src/main/java/com/sun/mail/util/
H A DUUDecoderStream.java59 private byte[] buffer = new byte[45]; // max decoded chars in a line = 45
75 * controls whether a missing begin or end line cause an exception
175 * UUencoded streams start off with the line:
185 String line;
188 line = lin.readLine(); // NOTE: readLine consumes CRLF pairs too
189 if (line == null) {
197 if (line.regionMatches(false, 0, "begin", 0, 5)) {
199 mode = Integer.parseInt(line.substring(6,9));
205 if (line.length() > 10) {
206 name = line
[all...]
/javamail/mbox/src/main/java/com/sun/mail/mbox/
H A DMessageLoader.java60 private char[] line; field in class:MessageLoader
71 * only as the line terminators.
83 line = new char[LINELEN];
125 line = null;
152 // newline at end of line, was the line one of the headers
156 String s = new String(line, 0, lpos);
158 if (line[7] == '-' && isPrefix(s, "Content-Length:")) {
166 } else if ((line[1] == 't' || line[
[all...]
H A DContentLengthUpdater.java53 private StringBuffer line = new StringBuffer(); field in class:ContentLengthUpdater
65 // if line terminator is CR
69 // else, if line terminator is CRLF
74 // else, if line terminator is \n
89 // If we have a full line, see if it's a Content-Length header.
91 if (line.toString().regionMatches(true, 0,
99 out.write(line.toString().getBytes("iso-8859-1"));
101 line.setLength(0); // clear buffer for next line
104 out.write(b); // write out line terminato
[all...]
H A DSunV3Multipart.java136 String line;
145 * boundary line.
148 while ((line = lin.readLine()) != null) {
149 if (line.trim().equals(boundary))
152 if (line == null)
157 * terminating boundary line (or EOF).
177 * Found the end of a line, check whether the
178 * next line is a boundary.
192 // check for end of line
/javamail/mail/src/test/java/com/sun/mail/util/
H A DUUDecoderStreamTest.java134 String line = null;
136 line = in.readLine();
137 if (line == null)
139 if (line.length() == 0 || line.startsWith("#"))
142 if (!line.startsWith("TEST"))
148 int i = line.indexOf(' '); // XXX - crude
149 t.name = line.substring(i + 1);
151 line = in.readLine();
152 StringTokenizer st = new StringTokenizer(line);
[all...]
H A DBASE64Test.java146 // read the encoded output and check the line length
224 byte[] line = new byte[encodedLine.length];
225 System.arraycopy(bos.toByteArray(), 0, line, 0, line.length);
226 Assert.assertArrayEquals("encoded line " + i, encodedLine, line);
239 byte[] line = new byte[encodedLine.length];
240 System.arraycopy(bos.toByteArray(), 0, line, 0, line.length);
241 Assert.assertArrayEquals("all arrays, encoded line "
[all...]
/javamail/mail/src/main/java/javax/mail/internet/
H A DInternetHeaders.java52 * until the blank line that indicates end of header. The input stream
70 * exceed the line length limitation for the transport (1000 bytes for
76 * will cause a line containing only whitespace to be considered
77 * a blank line terminating the header.
105 * from the line field as needed. We store the line
107 * get back the exact original line, with the original
110 String line; // the entire RFC822 header "line", field in class:InternetHeaders.InternetHeader
114 * Constructor that takes a line an
429 isEmpty(String line) argument
627 addHeaderLine(String line) argument
[all...]
H A DMimeMultipart.java82 * data does not end with the required end boundary line. If this
92 * parsing code will look for a line that looks like a bounary line and
97 * to be ignored and instead search for a boundary line in the message
131 * Have we seen the final bounary line?
139 * occurs before the first boundary line.
443 * Return true if the final boundary line for this
447 * the final multipart boundary line. In such a case,
453 * @return true if the final boundary line was seen
539 // XXX - could force a blank line befor
[all...]
H A DMimePart.java65 * exceed the line length limitation for the transport (1000 bytes for
92 * Add a raw RFC822 header-line.
94 * @param line the line to add
101 public void addHeaderLine(String line) throws MessagingException; argument
105 * line is a raw RFC822 header-line, containing both the "name"
116 * A Header line is a raw RFC822 header-line, containing both
129 * A Header line i
[all...]
/javamail/mail/src/test/java/javax/mail/internet/
H A DInternetAddressFoldTest.java90 String line;
91 while ((line = in.readLine()) != null) {
92 if (line.startsWith("#") || line.length() == 0)
94 if (!line.startsWith("FOLD"))
96 int count = Integer.parseInt(line.substring(5));
117 in.readLine(); // throw away rest of line
H A DFoldTest.java90 String line;
91 while ((line = in.readLine()) != null) {
92 if (line.startsWith("#") || line.length() == 0)
95 if (line.equals("BOTH")) {
96 testData.add(new Object[] { line, orig, null });
102 testData.add(new Object[] { line, orig, expect });
116 in.readLine(); // throw away rest of line
H A DInternetAddressTest.java126 * If there's any args left on the command line,
168 // a continuation line, add it to the current header
232 * Read an "expected" line, handling continuations
233 * (backslash at end of line). If line ends with
235 * line that ends with a single backslash.
238 String line = in.readLine();
239 if (!line.endsWith("\\"))
240 return line;
241 if (line
[all...]
/javamail/mail/src/test/java/com/sun/mail/imap/protocol/
H A DUIDSetTest.java132 String line = null;
134 line = in.readLine();
135 if (line == null)
137 if (line.length() == 0 || line.startsWith("#"))
140 if (!line.startsWith("TEST"))
146 int i = line.indexOf(' '); // XXX - crude
147 t.name = line.substring(i + 1);
149 line = in.readLine();
150 StringTokenizer st = new StringTokenizer(line);
[all...]
/javamail/mail/src/test/java/com/sun/mail/imap/
H A DIMAPHandler.java59 /** Current line. */
193 //LOGGER.severe("Current line is null!");
359 public void list(String line) throws IOException { argument
377 LOGGER.severe("Current line is null!");
384 String line = readLine();
386 if (line != null && !line.equalsIgnoreCase("DONE")) {
398 public void fetch(String line) throws IOException { argument
407 public void store(String line) throws IOException { argument
416 public void search(String line) throw argument
426 uidfetch(String line) argument
435 uidstore(String line) argument
444 append(String line) argument
458 id(String line) argument
[all...]
H A DIMAPAuthDebugTest.java134 String line;
136 while ((line = r.readLine()) != null) {
137 if (line.startsWith("DEBUG"))
139 if (line.startsWith("*"))
141 if (line.indexOf(expect) >= 0)
H A DIMAPFetchProfileTest.java107 public void fetch(String line) throws IOException {
108 if (line.indexOf("INTERNALDATE") >= 0)
134 public void fetch(String line) throws IOException {
135 if (line.indexOf("INTERNALDATE") >= 0)
156 public void fetch(String line) throws IOException {
157 if (line.indexOf("INTERNALDATE") >= 0)
H A DIMAPUidExpungeTest.java91 public void uidfetch(String line) throws IOException {
114 public void uidfetch(String line) throws IOException {
140 public void uidfetch(String line) throws IOException {
168 public void uidfetch(String line) throws IOException {
197 public void uidfetch(String line) throws IOException {
226 public void uidfetch(String line) throws IOException {
256 public void uidfetch(String line) throws IOException {
285 public void uidfetch(String line) throws IOException {
314 public void uidfetch(String line) throws IOException {
343 public void uidfetch(String line) throw
468 fetch(String line) argument
[all...]
H A DIMAPIDTest.java111 public void id(String line) throws IOException { argument
112 StringTokenizer st = new StringTokenizer(line);
H A DIMAPMessageNumberOutOfRangeTest.java129 public void search(String line) throws IOException { argument
135 public void fetch(String line) throws IOException { argument
/javamail/android/activation/src/main/java/com/sun/activation/registries/
H A DMimeTypeFile.java132 String line = null, prev = null;
134 while ((line = buf_reader.readLine()) != null) {
136 prev = line;
138 prev += line;
154 private void parseEntry(String line) { argument
157 line = line.trim();
159 if (line.length() == 0) // empty line...
162 // check to see if this is a comment line
[all...]
H A DMailcapFile.java261 String line = null;
264 while ((line = buf_reader.readLine()) != null) {
265 // LogSupport.log("parsing line: " + line);
267 line = line.trim();
270 if (line.charAt(0) == '#')
272 if (line.charAt(line.length() - 1) == '\\') {
274 continued += line
[all...]
/javamail/mail/src/test/java/com/sun/mail/smtp/
H A DSMTPHandler.java57 /** Current line. */
95 //LOGGER.severe("Current line is null!");
137 LOGGER.severe("Current line is null!");
200 String line;
201 while ((line = reader.readLine()) != null) {
202 if (line.equals("."))
244 public void auth(String line) throws IOException { argument
H A DSMTPAuthDebugTest.java135 String line;
137 while ((line = r.readLine()) != null) {
138 if (line.startsWith("DEBUG"))
140 if (line.startsWith("*"))
142 if (line.startsWith(expect))
/javamail/mail/src/test/java/com/sun/mail/pop3/
H A DPOP3AuthDebugTest.java135 String line;
137 while ((line = r.readLine()) != null) {
138 if (line.startsWith("DEBUG"))
140 if (line.startsWith("*"))
142 if (line.indexOf(expect) >= 0)
/javamail/mail/src/main/java/com/sun/mail/pop3/
H A DProtocol.java54 String data = null; // rest of line after "+OK" or "-ERR"
55 InputStream bytes = null; // all the bytes from a multi-line response
617 String line = null;
618 while ((line = lis.readLine()) != null) {
619 int i = line.indexOf(' ');
620 if (i < 1 || i >= line.length())
622 int n = Integer.parseInt(line.substring(0, i));
624 uids[n - 1] = line.substring(i + 1);
727 String line = null;
729 line
[all...]

Completed in 85 milliseconds

12