Searched refs:mode (Results 1 - 19 of 19) sorted by relevance

/javamail/mbox/src/main/java/com/sun/mail/mbox/
H A DInboxFile.java44 public boolean openLock(String mode); argument
H A DUNIXInbox.java62 public boolean lock(String mode) { argument
69 if (!super.lock(mode)) {
91 public boolean openLock(String mode) { argument
92 if (mode.equals("r"))
99 lockfile = new RandomAccessFile(lockfileName, mode);
107 ret = UNIXFile.lock(lockfile.getFD(), mode);
111 tryLock(0L, Long.MAX_VALUE, !mode.equals("rw")) != null;
H A DMailFile.java46 public boolean lock(String mode); argument
H A DUNIXFolder.java54 public boolean lock(String mode) { argument
56 file = new RandomAccessFile(this, mode);
62 return UNIXFile.lock(file.getFD(), mode);
65 tryLock(0L, Long.MAX_VALUE, !mode.equals("rw")) != null;
H A DUNIXFile.java126 * Lock the file referred to by fd. The string mode is "r"
130 public static boolean lock(FileDescriptor fd, String mode) { argument
131 return lock(fd, mode, false);
135 * Lock the file referred to by fd. The string mode is "r"
139 private static boolean lock(FileDescriptor fd, String mode, boolean block) { argument
140 //return loaded && lock0(fd, mode);
143 //System.out.println("UNIXFile.lock(" + fd + ", " + mode + ")");
144 ret = lock0(fd, mode, block);
151 private static native boolean lock0(FileDescriptor fd, String mode, argument
H A DDefaultMailbox.java95 public boolean lock(String mode) { argument
97 file = new RandomAccessFile(this, mode);
H A DMboxFolder.java353 if (!opened || (mode != READ_ONLY && mode != READ_WRITE))
359 if (!opened || mode != READ_WRITE)
368 * Open the folder in the specified mode.
370 public synchronized void open(int mode) throws MessagingException { argument
377 this.mode = mode;
378 switch (mode) {
395 if (!inf.openLock(mode == READ_WRITE ? "rw" : "r"))
422 if (mode
[all...]
/javamail/mbox/src/main/java/com/sun/mail/remote/
H A DRemoteInbox.java76 * Open the folder in the specified mode.
79 public synchronized void open(int mode) throws MessagingException { argument
81 super.open(mode);
/javamail/mail/src/main/java/com/sun/mail/util/
H A DUUEncoderStream.java61 private int mode; // permissions mode field in class:UUEncoderStream
84 * @param mode Specifies permission mode for the encoded buffer
86 public UUEncoderStream(OutputStream out, String name, int mode) { argument
89 this.mode = mode;
94 * Set up the buffer name and permission mode.
99 * @param mode the permission mode
101 setNameMode(String name, int mode) argument
[all...]
H A DUUDecoderStream.java57 private int mode; field in class:UUDecoderStream
163 * Get the "mode" field from the prefix. This is the permission
164 * mode of the source file.
166 * @return permission mode of source file
171 return mode;
176 * "begin <mode> <filename>"
183 mode = 0666; // defaults, overridden below
199 mode = Integer.parseInt(line.substring(6,9));
203 "UUDecoder: Error in mode: " + ex.toString());
/javamail/mbox/src/main/cpp/com/sun/mail/mbox/
H A DUNIXFile.c82 const char *mode; local
89 mode = (*env)->GetStringUTFChars(env, umode, 0);
90 flock.l_type = mode[1] == 'w' ? F_WRLCK : F_RDLCK;
91 (*env)->ReleaseStringUTFChars(env, umode, mode);
/javamail/
H A Dsigtest68 -nomerge -checkvalue -mode src "$BACKWARD"
H A Dmail.sig99 fld protected int mode
/javamail/mail/src/main/java/com/sun/mail/pop3/
H A DPOP3Folder.java201 public synchronized void open(int mode) throws MessagingException { argument
211 this.mode = mode;
257 if (expunge && mode == READ_WRITE && !forceClose) {
576 if (!opened || (mode != READ_ONLY && mode != READ_WRITE))
583 if (!opened || mode != READ_WRITE)
H A DDefaultFolder.java114 public void open(int mode) throws MessagingException { argument
/javamail/mail/src/main/java/com/sun/mail/imap/protocol/
H A DMailboxInfo.java75 public int mode; field in class:MailboxInfo
H A DIMAPProtocol.java1179 minfo.mode = Folder.READ_ONLY;
1181 minfo.mode = Folder.READ_WRITE;
1236 minfo.mode = Folder.READ_ONLY; // Obviously
/javamail/mail/src/main/java/javax/mail/
H A DFolder.java127 * The open mode of this folder. The open mode is
132 protected int mode = -1; field in class:Folder
621 * @param mode open the Folder READ_ONLY or READ_WRITE
632 public abstract void open(int mode) throws MessagingException; argument
656 * Return the open mode of this folder. Returns
658 * or -1 if the open mode is not known (usually only because an older
663 * @return the open mode of this folder
669 return mode;
/javamail/mail/src/main/java/com/sun/mail/imap/
H A DIMAPFolder.java522 if (mode != READ_WRITE)
970 * Open this folder in the given mode.
972 public synchronized void open(int mode) throws MessagingException { argument
973 open(mode, null);
977 * Open this folder in the given mode, with the given
980 * @param mode the open mode (Folder.READ_WRITE or Folder.READ_ONLY)
986 public synchronized List<MailEvent> open(int mode, ResyncData rd) argument
1027 if (mode == READ_ONLY)
1068 if (mi.mode !
[all...]

Completed in 85 milliseconds