Searched defs:size (Results 1 - 25 of 27) sorted by relevance

12

/javamail/mail/src/main/java/com/sun/mail/pop3/
H A DStatus.java48 int size = 0; // size of the mailbox field in class:Status
H A DPOP3Folder.java72 private int size; field in class:POP3Folder
210 size = s.size;
234 // Create the message cache array of appropriate size
400 * the headers and size of all messages are fetched using the POP3 TOP
440 // fetch message size
477 * Return the size of this folder, as was returned by the POP3 STAT
480 * @return folder size
486 return size;
512 int size
[all...]
H A DProtocol.java85 // sometimes the returned size isn't quite big enough
370 * Return the total number of messages and mailbox size,
392 s.size = Integer.parseInt(st.nextToken());
400 * Return the size of the message using the LIST command.
404 int size = -1;
409 size = Integer.parseInt(st.nextToken());
414 return size;
418 * Return the size of all messages using the LIST command.
421 Response r = multilineCommand("LIST", 128); // 128 == output size est
427 * Given an estimate of the message's size w
431 retr(int msg, int size) argument
775 multilineCommand(String cmd, int size) argument
794 readMultilineResponse(int size) argument
[all...]
/javamail/mail/src/main/java/com/sun/mail/util/
H A DSharedByteArrayOutputStream.java57 public SharedByteArrayOutputStream(int size) { argument
58 super(size);
H A DBASE64EncoderStream.java57 private int bufsize = 0; // size of the cache
58 private byte[] outbuf; // line size output buffer
262 private static byte[] encode(byte[] inbuf, int off, int size, argument
265 outbuf = new byte[encodedSize(size)];
268 for (inpos = off, outpos = 0; size >= 3; size -= 3, outpos += 4) {
283 if (size == 1) {
291 } else if (size == 2) {
307 * Return the corresponding encoded size for the given number
310 private static int encodedSize(int size) { argument
[all...]
H A DWriteTimeoutSocket.java219 public void setSendBufferSize(int size) throws SocketException { argument
220 socket.setSendBufferSize(size);
229 public void setReceiveBufferSize(int size) throws SocketException { argument
230 socket.setReceiveBufferSize(size);
/javamail/mail/src/test/java/javax/mail/internet/
H A DMimeMultipartParseTest.java93 for (int size = 8100; size <= maxsize; size++)
94 testMessage(size, shared);
97 public void testMessage(int size, boolean shared) throws Exception { argument
98 //System.out.println("SIZE: " + size);
101 * given size.
112 byte[] part = new byte[size];
113 for (int i = 0; i < size; i++) {
162 Assert.assertEquals("Size " + size
[all...]
/javamail/mail/src/main/java/com/sun/mail/iap/
H A DLiteral.java54 * Return the size of the data.
56 * @return the size of the data
58 public int size(); method in interface:Literal
H A DByteArray.java71 * Constructor that creates a byte array of the specified size.
73 * @param size the size of the ByteArray
76 public ByteArray(int size) { argument
77 this(new byte[size], 0, size);
H A DArgument.java225 int size = items != null ? items.size() : 0;
228 for (int i=0; i < size; i++) {
351 b.writeTo(startLiteral(protocol, b.size()));
359 b.writeTo(startLiteral(protocol, b.size()));
362 private OutputStream startLiteral(Protocol protocol, int size) argument
368 os.writeBytes(Integer.toString(size));
H A DResponse.java57 protected int size; // number of valid bytes in our buffer field in class:Response
100 size = buffer.length;
116 size = response.getCount() - 2; // Skip the terminating CRLF
128 size = r.size;
153 if (size == 0) // empty line
189 while (index < size && buffer[index] == ' ')
197 while (index < size && buffer[index] != ' ')
206 if (index < size)
218 if (index < size)
[all...]
/javamail/mail/src/main/java/com/sun/mail/imap/protocol/
H A DRFC822SIZE.java56 public int size; field in class:RFC822SIZE
67 size = r.readNumber();
H A DMessageSet.java66 public int size() { method in class:MessageSet
93 return v.toArray(new MessageSet[v.size()]);
108 int size = msgsets.length;
121 if (i >= size) // No more MessageSets
133 public static int size(MessageSet[] msgsets) { method in class:MessageSet
140 count += msgsets[i].size();
H A DUIDSet.java68 public long size() { method in class:UIDSet
97 UIDSet[] uidset = new UIDSet[v.size()];
137 UIDSet[] uidset = new UIDSet[v.size()];
155 int size = uidset.length;
168 if (i >= size) // No more UIDSets
187 long[] uids = new long[(int)UIDSet.size(uidset)];
208 long[] uids = new long[(int)UIDSet.size(uidset, uidmax)];
226 public static long size(UIDSet[] uidset) { method in class:UIDSet
231 count += u.size();
242 private static long size(UIDSe method in class:UIDSet
[all...]
H A DSearchSequence.java115 return size((SizeTerm)term);
363 protected Argument size(SizeTerm term) method in class:SearchSequence
375 // GT and LT is all we get from IMAP for size
H A DBODYSTRUCTURE.java66 public int size = -1; // Size in bytes field in class:BODYSTRUCTURE
121 bodies = v.toArray(new BODYSTRUCTURE[v.size()]);
224 size = 0;
262 size = r.readNumber();
264 System.out.println("DEBUG IMAP: size " + size);
265 if (size < 0)
267 "BODYSTRUCTURE parse error: bad ``size'' element");
H A DIMAPProtocol.java601 Response[] responses = v.toArray(new Response[v.size()]);
711 Response[] responses = v.toArray(new Response[v.size()]);
809 Response[] responses = v.toArray(new Response[v.size()]);
902 Response[] responses = v.toArray(new Response[v.size()]);
972 String[] mechs = v.toArray(new String[v.size()]);
1518 if (v.size() > 0) {
1519 linfo = v.toArray(new ListInfo[v.size()]);
1737 * @param size number of bytes to fetch
1741 public BODY peekBody(int msgno, String section, int start, int size) argument
1743 return fetchBody(msgno, section, start, size, tru
1756 fetchBody(int msgno, String section, int start, int size) argument
1772 peekBody(int msgno, String section, int start, int size, ByteArray ba) argument
1788 fetchBody(int msgno, String section, int start, int size, ByteArray ba) argument
1793 fetchBody(int msgno, String section, int start, int size, boolean peek, ByteArray ba) argument
[all...]
/javamail/mail/src/main/java/javax/mail/search/
H A DSizeTerm.java59 * @param size the size
61 public SizeTerm(int comparison, int size) { argument
62 super(comparison, size);
68 * @param msg the size comparator is applied to this Message's size
69 * @return true if the size is equal, otherwise false
72 int size;
75 size = msg.getSize();
80 if (size
[all...]
/javamail/mbox/src/main/java/com/sun/mail/mbox/
H A DContentLengthCounter.java49 private long size = 0; field in class:ContentLengthCounter
69 size++;
76 size += b.length;
83 size += len;
87 return size;
96 System.out.println("size " + os.getSize());
H A DMboxFolder.java67 private long file_size; // the size the last time we read or wrote it
68 private long saved_file_size; // size at the last open, close, or expunge
157 Folder fl[] = new Folder[flist.size()];
221 // if we've never opened the folder, remember the size now
1187 public SharedByteArrayOutputStream(int size) { argument
1188 super(size);
/javamail/android/activation/src/main/java/javax/activation/
H A DMimeTypeParameterList.java199 public int size() { method in class:MimeTypeParameterList
200 return parameters.size();
257 buffer.ensureCapacity(parameters.size() * 16);
/javamail/mail/src/main/java/com/sun/mail/imap/
H A DMessageCache.java63 * folder. The "size" field indicates the number of entries that
78 * Might be less than the actual size of the array.
80 private int size; field in class:MessageCache
97 * Construct a new message cache of the indicated size.
99 MessageCache(IMAPFolder folder, IMAPStore store, int size) { argument
104 logger.config("create cache of size " + size);
105 ensureCapacity(size, 1);
111 MessageCache(int size, boolean debug) { argument
117 logger.config("create DEBUG cache of size "
126 public int size() { method in class:MessageCache
[all...]
H A DIMAPMessage.java87 * the effective size of an IMAPMessage object.
94 private int size = -1; // RFC822.SIZE field in class:IMAPMessage
303 // Return the block size for FETCH requests
309 // Should we ignore the size in the BODYSTRUCTURE?
482 * Get the message size. <p>
485 * size of the whole message, header and body included.
489 // if bodyLoaded, size is already set
490 if (size == -1)
491 loadEnvelope(); // XXX - could just fetch the size
492 return size;
[all...]
/javamail/mail/src/main/java/javax/mail/util/
H A DSharedFileInputStream.java80 * The normal size of the read buffer.
189 * with the specified buffer size.
192 * @param size the buffer size.
194 * @exception IllegalArgumentException if size &le; 0.
196 public SharedFileInputStream(File file, int size) throws IOException { argument
198 if (size <= 0)
199 throw new IllegalArgumentException("Buffer size <= 0");
200 init(new SharedFile(file), size);
205 * with the specified buffer size
212 SharedFileInputStream(String file, int size) argument
219 init(SharedFile sf, int size) argument
[all...]
/javamail/mail/src/main/java/javax/mail/internet/
H A DParameterList.java347 if (decodeParameters && multisegmentNames.size() > 0) {
495 if (slist.size() > 0) {
526 public int size() { method in class:ParameterList
527 return list.size();
668 for (int i = 0; i < vv.size(); i++) {
857 * encoded characters, so use that to size the

Completed in 101 milliseconds

12