@icecreamcake/autojs6-dts
Version:
TypeScript Declarations for AutoJs6
1,165 lines (1,129 loc) • 220 kB
TypeScript
declare module com {
export module sun {
export module mail {
export module dsn {
export class DeliveryStatus extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.dsn.DeliveryStatus>;
public messageDSN: javax.mail.internet.InternetHeaders;
public recipientDSN: javax.mail.internet.InternetHeaders[];
public toString(): string;
public writeTo(os: java.io.OutputStream): void;
public constructor();
public getRecipientDSNCount(): number;
public constructor(is: java.io.InputStream);
public setMessageDSN(messageDSN: javax.mail.internet.InternetHeaders): void;
public getMessageDSN(): javax.mail.internet.InternetHeaders;
public addRecipientDSN(h: javax.mail.internet.InternetHeaders): void;
public getRecipientDSN(n: number): javax.mail.internet.InternetHeaders;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module dsn {
export class MessageHeaders extends javax.mail.internet.MimeMessage {
public static class: java.lang.Class<com.sun.mail.dsn.MessageHeaders>;
public getMatchingHeaders(param0: string[]): java.util.Enumeration<any>;
public setDescription(param0: string): void;
public addHeader(name: string, value: string): void;
public getNonMatchingHeaders(param0: string[]): java.util.Enumeration<any>;
public getNonMatchingHeaderLines(names: string[]): java.util.Enumeration<any>;
public getHeader(param0: string, param1: string): string;
public getSize(): number;
public setText(param0: string): void;
public constructor();
public getMatchingHeaderLines(names: string[]): java.util.Enumeration<any>;
public removeHeader(name: string): void;
public getInputStream(): java.io.InputStream;
public constructor(folder: javax.mail.Folder, is: java.io.InputStream, msgnum: number);
public setDescription(description: string, charset: string): void;
public getHeader(name: string): string[];
public getNonMatchingHeaderLines(param0: string[]): java.util.Enumeration<any>;
public constructor(is: java.io.InputStream);
public getNonMatchingHeaders(names: string[]): java.util.Enumeration<any>;
public getHeader(param0: string): string[];
public constructor(folder: javax.mail.Folder, msgnum: number);
public setContentLanguage(languages: string[]): void;
public setHeader(param0: string, param1: string): void;
public setText(text: string, charset: string): void;
public constructor(source: javax.mail.internet.MimeMessage);
public writeTo(param0: java.io.OutputStream): void;
public removeHeader(param0: string): void;
public getContentID(): string;
public setDescription(description: string): void;
public setFileName(filename: string): void;
public getContentStream(): java.io.InputStream;
public addHeaderLine(param0: string): void;
public getDescription(): string;
public setText(text: string): void;
public getLineCount(): number;
public getMatchingHeaders(names: string[]): java.util.Enumeration<any>;
public constructor(session: javax.mail.Session, is: java.io.InputStream);
public getDataHandler(): javax.activation.DataHandler;
public isMimeType(param0: string): boolean;
public setDataHandler(param0: javax.activation.DataHandler): void;
public setDisposition(param0: string): void;
public setContent(mp: javax.mail.Multipart): void;
public setHeader(name: string, value: string): void;
public setContentMD5(param0: string): void;
public constructor(headers: javax.mail.internet.InternetHeaders);
public getDisposition(): string;
public addHeader(param0: string, param1: string): void;
public getHeader(name: string, delimiter: string): string;
public isMimeType(mimeType: string): boolean;
public getMatchingHeaderLines(param0: string[]): java.util.Enumeration<any>;
public getFileName(): string;
public writeTo(os: java.io.OutputStream): void;
public constructor(session: javax.mail.Session);
public getEncoding(): string;
public setContent(o: any, type: string): void;
public setText(param0: string, param1: string, param2: string): void;
public getContentType(): string;
public getContent(): any;
public setText(param0: string, param1: string): void;
public setContent(param0: javax.mail.Multipart): void;
public setFileName(param0: string): void;
public setContent(param0: any, param1: string): void;
public constructor(folder: javax.mail.Folder, headers: javax.mail.internet.InternetHeaders, content: number[], msgnum: number);
public setDataHandler(dh: javax.activation.DataHandler): void;
public addHeaderLine(line: string): void;
public writeTo(os: java.io.OutputStream, ignoreList: string[]): void;
public setText(text: string, charset: string, subtype: string): void;
public getAllHeaderLines(): java.util.Enumeration<any>;
public getContentMD5(): string;
public getContentLanguage(): string[];
public setDisposition(disposition: string): void;
public setContentMD5(md5: string): void;
public getAllHeaders(): java.util.Enumeration<any>;
public setContentLanguage(param0: string[]): void;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module dsn {
export class MultipartReport extends javax.mail.internet.MimeMultipart {
public static class: java.lang.Class<com.sun.mail.dsn.MultipartReport>;
public constructed: boolean;
public setTextBodyPart(mbp: javax.mail.internet.MimeBodyPart): void;
public getTextBodyPart(): javax.mail.internet.MimeBodyPart;
public getText(): string;
public getDeliveryStatus(): com.sun.mail.dsn.DeliveryStatus;
public removeBodyPart(part: javax.mail.BodyPart): boolean;
public addBodyPart(part: javax.mail.BodyPart): void;
public setSubType(subtype: string): void;
public constructor(text: string, status: com.sun.mail.dsn.DeliveryStatus, hdr: javax.mail.internet.InternetHeaders);
public setReturnedMessage(msg: javax.mail.internet.MimeMessage): void;
public constructor(text: string, status: com.sun.mail.dsn.DeliveryStatus, msg: javax.mail.internet.MimeMessage);
public setDeliveryStatus(status: com.sun.mail.dsn.DeliveryStatus): void;
public constructor(text: string, status: com.sun.mail.dsn.DeliveryStatus);
public removeBodyPart(index: number): void;
public getReturnedMessage(): javax.mail.internet.MimeMessage;
public constructor();
public constructor(ds: javax.activation.DataSource);
public constructor(subtype: string);
public addBodyPart(part: javax.mail.BodyPart, index: number): void;
public setText(text: string): void;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module dsn {
export class message_deliverystatus extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.dsn.message_deliverystatus>;
public constructor();
public getTransferData(df: myjava.awt.datatransfer.DataFlavor, ds: javax.activation.DataSource): any;
public getTransferDataFlavors(): myjava.awt.datatransfer.DataFlavor[];
public writeTo(obj: any, mimeType: string, os: java.io.OutputStream): void;
public getContent(ds: javax.activation.DataSource): any;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module dsn {
export class multipart_report extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.dsn.multipart_report>;
public constructor();
public getTransferData(df: myjava.awt.datatransfer.DataFlavor, ds: javax.activation.DataSource): any;
public getTransferDataFlavors(): myjava.awt.datatransfer.DataFlavor[];
public writeTo(obj: any, mimeType: string, os: java.io.OutputStream): void;
public getContent(ds: javax.activation.DataSource): any;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module dsn {
export class text_rfc822headers extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.dsn.text_rfc822headers>;
public constructor();
public writeTo(obj: any, type: string, os: java.io.OutputStream): void;
public getTransferData(df: myjava.awt.datatransfer.DataFlavor, ds: javax.activation.DataSource): any;
public getTransferDataFlavors(): myjava.awt.datatransfer.DataFlavor[];
public getContent(ds: javax.activation.DataSource): any;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module handlers {
export class message_rfc822 extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.handlers.message_rfc822>;
public constructor();
public getTransferData(df: myjava.awt.datatransfer.DataFlavor, ds: javax.activation.DataSource): any;
public getTransferDataFlavors(): myjava.awt.datatransfer.DataFlavor[];
public writeTo(obj: any, mimeType: string, os: java.io.OutputStream): void;
public getContent(ds: javax.activation.DataSource): any;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module handlers {
export class multipart_mixed extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.handlers.multipart_mixed>;
public constructor();
public getTransferData(df: myjava.awt.datatransfer.DataFlavor, ds: javax.activation.DataSource): any;
public getTransferDataFlavors(): myjava.awt.datatransfer.DataFlavor[];
public writeTo(obj: any, mimeType: string, os: java.io.OutputStream): void;
public getContent(ds: javax.activation.DataSource): any;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module handlers {
export class text_html extends com.sun.mail.handlers.text_plain {
public static class: java.lang.Class<com.sun.mail.handlers.text_html>;
public constructor();
public getDF(): javax.activation.ActivationDataFlavor;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module handlers {
export class text_plain extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.handlers.text_plain>;
public constructor();
public writeTo(obj: any, type: string, os: java.io.OutputStream): void;
public getDF(): javax.activation.ActivationDataFlavor;
public getTransferData(df: myjava.awt.datatransfer.DataFlavor, ds: javax.activation.DataSource): any;
public getTransferDataFlavors(): myjava.awt.datatransfer.DataFlavor[];
public getContent(ds: javax.activation.DataSource): any;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module handlers {
export class text_xml extends com.sun.mail.handlers.text_plain {
public static class: java.lang.Class<com.sun.mail.handlers.text_xml>;
public constructor();
public getDF(): javax.activation.ActivationDataFlavor;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class AString extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.iap.AString>;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class Argument extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.iap.Argument>;
public items: java.util.Vector<any>;
public writeBytes(b: java.io.ByteArrayOutputStream): void;
public writeBytes(b: com.sun.mail.iap.Literal): void;
public constructor();
public writeNumber(i: number): void;
public writeAtom(s: string): void;
public writeArgument(c: com.sun.mail.iap.Argument): void;
public writeString(s: string): void;
public append(arg: com.sun.mail.iap.Argument): void;
public writeString(s: string, charset: string): void;
public write(protocol: com.sun.mail.iap.Protocol): void;
public writeBytes(b: number[]): void;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class Atom extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.iap.Atom>;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class BadCommandException extends com.sun.mail.iap.ProtocolException {
public static class: java.lang.Class<com.sun.mail.iap.BadCommandException>;
public constructor(message: string, cause: java.lang.Throwable, enableSuppression: boolean, writableStackTrace: boolean);
public constructor();
public constructor(s: string);
public constructor(r: com.sun.mail.iap.Response);
public constructor(cause: java.lang.Throwable);
public constructor(message: string, cause: java.lang.Throwable);
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class ByteArray extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.iap.ByteArray>;
public getCount(): number;
public constructor(b: number[], start: number, count: number);
public getBytes(): number[];
public grow(incr: number): void;
public constructor(size: number);
public getNewBytes(): number[];
public getStart(): number;
public setCount(count: number): void;
public toByteArrayInputStream(): java.io.ByteArrayInputStream;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class CommandFailedException extends com.sun.mail.iap.ProtocolException {
public static class: java.lang.Class<com.sun.mail.iap.CommandFailedException>;
public constructor(message: string, cause: java.lang.Throwable, enableSuppression: boolean, writableStackTrace: boolean);
public constructor();
public constructor(s: string);
public constructor(r: com.sun.mail.iap.Response);
public constructor(cause: java.lang.Throwable);
public constructor(message: string, cause: java.lang.Throwable);
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class ConnectionException extends com.sun.mail.iap.ProtocolException {
public static class: java.lang.Class<com.sun.mail.iap.ConnectionException>;
public constructor(message: string, cause: java.lang.Throwable, enableSuppression: boolean, writableStackTrace: boolean);
public constructor(p: com.sun.mail.iap.Protocol, r: com.sun.mail.iap.Response);
public constructor();
public constructor(s: string);
public constructor(r: com.sun.mail.iap.Response);
public constructor(cause: java.lang.Throwable);
public getProtocol(): com.sun.mail.iap.Protocol;
public constructor(message: string, cause: java.lang.Throwable);
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class Literal extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.iap.Literal>;
/**
* Constructs a new instance of the com.sun.mail.iap.Literal interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
size(): number;
writeTo(param0: java.io.OutputStream): void;
});
public constructor();
public writeTo(param0: java.io.OutputStream): void;
public size(): number;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class LiteralException extends com.sun.mail.iap.ProtocolException {
public static class: java.lang.Class<com.sun.mail.iap.LiteralException>;
public constructor(message: string, cause: java.lang.Throwable, enableSuppression: boolean, writableStackTrace: boolean);
public constructor();
public constructor(s: string);
public constructor(r: com.sun.mail.iap.Response);
public constructor(cause: java.lang.Throwable);
public constructor(message: string, cause: java.lang.Throwable);
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class ParsingException extends com.sun.mail.iap.ProtocolException {
public static class: java.lang.Class<com.sun.mail.iap.ParsingException>;
public constructor(message: string, cause: java.lang.Throwable, enableSuppression: boolean, writableStackTrace: boolean);
public constructor();
public constructor(s: string);
public constructor(r: com.sun.mail.iap.Response);
public constructor(cause: java.lang.Throwable);
public constructor(message: string, cause: java.lang.Throwable);
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class Protocol extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.iap.Protocol>;
public host: string;
public debug: boolean;
public quote: boolean;
public out: java.io.PrintStream;
public props: java.util.Properties;
public prefix: string;
public getInputStream(): com.sun.mail.iap.ResponseInputStream;
public constructor(host: string, port: number, debug: boolean, out: java.io.PrintStream, props: java.util.Properties, prefix: string, isSSL: boolean);
public supportsNonSyncLiterals(): boolean;
public startTLS(cmd: string): void;
public finalize(): void;
public readResponse(): com.sun.mail.iap.Response;
public constructor(_in_: java.io.InputStream, out: java.io.OutputStream, debug: boolean);
public removeResponseHandler(h: com.sun.mail.iap.ResponseHandler): void;
public addResponseHandler(h: com.sun.mail.iap.ResponseHandler): void;
public getResponseBuffer(): com.sun.mail.iap.ByteArray;
public command(command: string, args: com.sun.mail.iap.Argument): com.sun.mail.iap.Response[];
public handleResult(response: com.sun.mail.iap.Response): void;
public getTimestamp(): number;
public getOutputStream(): java.io.OutputStream;
public processGreeting(r: com.sun.mail.iap.Response): void;
public simpleCommand(cmd: string, args: com.sun.mail.iap.Argument): void;
public writeCommand(command: string, args: com.sun.mail.iap.Argument): string;
public disconnect(): void;
public notifyResponseHandlers(responses: com.sun.mail.iap.Response[]): void;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class ProtocolException extends java.lang.Exception {
public static class: java.lang.Class<com.sun.mail.iap.ProtocolException>;
public response: com.sun.mail.iap.Response;
public constructor(message: string);
public constructor(message: string, cause: java.lang.Throwable, enableSuppression: boolean, writableStackTrace: boolean);
public constructor();
public constructor(s: string);
public constructor(r: com.sun.mail.iap.Response);
public getResponse(): com.sun.mail.iap.Response;
public constructor(cause: java.lang.Throwable);
public constructor(message: string, cause: java.lang.Throwable);
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class Response extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.iap.Response>;
public index: number;
public pindex: number;
public size: number;
public buffer: number[];
public type: number;
public tag: string;
public static TAG_MASK: number;
public static CONTINUATION: number;
public static TAGGED: number;
public static UNTAGGED: number;
public static TYPE_MASK: number;
public static OK: number;
public static NO: number;
public static BAD: number;
public static BYE: number;
public static SYNTHETIC: number;
public getType(): number;
public isNO(): boolean;
public readLong(): number;
public skipSpaces(): void;
public isOK(): boolean;
public toString(): string;
public readNumber(): number;
public readString(delim: string): string;
public isUnTagged(): boolean;
public constructor(p: com.sun.mail.iap.Protocol);
public readBytes(): java.io.ByteArrayInputStream;
public isSynthetic(): boolean;
public isContinuation(): boolean;
public readAtom(delim: string): string;
public skipToken(): void;
public readByteArray(): com.sun.mail.iap.ByteArray;
public getRest(): string;
public reset(): void;
public constructor(s: string);
public constructor(r: com.sun.mail.iap.Response);
public skip(count: number): void;
public readByte(): number;
public getTag(): string;
public static byeResponse(ex: java.lang.Exception): com.sun.mail.iap.Response;
public isTagged(): boolean;
public isBYE(): boolean;
public isBAD(): boolean;
public readStringList(): string[];
public readAtomString(): string;
public peekByte(): number;
public readAtom(): string;
public readString(): string;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class ResponseHandler extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.iap.ResponseHandler>;
/**
* Constructs a new instance of the com.sun.mail.iap.ResponseHandler interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
handleResponse(param0: com.sun.mail.iap.Response): void;
});
public constructor();
public handleResponse(param0: com.sun.mail.iap.Response): void;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module iap {
export class ResponseInputStream extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.iap.ResponseInputStream>;
public constructor(_in_: java.io.InputStream);
public readResponse(ba: com.sun.mail.iap.ByteArray): com.sun.mail.iap.ByteArray;
public readResponse(): com.sun.mail.iap.ByteArray;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module imap {
export class ACL extends java.lang.Object implements java.lang.Cloneable {
public static class: java.lang.Class<com.sun.mail.imap.ACL>;
public constructor(name: string);
public clone(): any;
public getName(): string;
public getRights(): com.sun.mail.imap.Rights;
public constructor(name: string, rights: com.sun.mail.imap.Rights);
public setRights(rights: com.sun.mail.imap.Rights): void;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module imap {
export class AppendUID extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.imap.AppendUID>;
public uidvalidity: number;
public uid: number;
public constructor(uidvalidity: number, param1: number);
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module imap {
export class DefaultFolder extends com.sun.mail.imap.IMAPFolder {
public static class: java.lang.Class<com.sun.mail.imap.DefaultFolder>;
public getUIDValidity(): number;
public constructor(fullName: string, separator: string, store: com.sun.mail.imap.IMAPStore);
public getMessagesByUID(uids: number[]): javax.mail.Message[];
public appendMessages(msgs: javax.mail.Message[]): void;
public getUID(message: javax.mail.Message): number;
public getMessageByUID(uid: number): javax.mail.Message;
public getMessagesByUID(param0: number[]): javax.mail.Message[];
public hasNewMessages(): boolean;
public renameTo(f: javax.mail.Folder): boolean;
public handleResponse(param0: com.sun.mail.iap.Response): void;
public getFolder(name: string): javax.mail.Folder;
public constructor(fullName: string, separator: string, store: com.sun.mail.imap.IMAPStore, isNamespace: boolean);
public constructor(li: com.sun.mail.imap.protocol.ListInfo, store: com.sun.mail.imap.IMAPStore);
public list(pattern: string): javax.mail.Folder[];
public listSubscribed(): javax.mail.Folder[];
public getMessageByUID(param0: number): javax.mail.Message;
public constructor(store: javax.mail.Store);
public getParent(): javax.mail.Folder;
public listSubscribed(pattern: string): javax.mail.Folder[];
public handleResponse(r: com.sun.mail.iap.Response): void;
public getMessagesByUID(start: number, param1: number): javax.mail.Message[];
public getMessagesByUID(param0: number, param1: number): javax.mail.Message[];
public getUID(param0: javax.mail.Message): number;
public constructor(store: com.sun.mail.imap.IMAPStore);
public list(): javax.mail.Folder[];
public getName(): string;
public expunge(): javax.mail.Message[];
public delete(recurse: boolean): boolean;
public expunge(msgs: javax.mail.Message[]): javax.mail.Message[];
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module imap {
export class IMAPBodyPart extends javax.mail.internet.MimeBodyPart {
public static class: java.lang.Class<com.sun.mail.imap.IMAPBodyPart>;
public getMatchingHeaders(param0: string[]): java.util.Enumeration<any>;
public setDescription(param0: string): void;
public addHeader(name: string, value: string): void;
public getNonMatchingHeaders(param0: string[]): java.util.Enumeration<any>;
public getNonMatchingHeaderLines(names: string[]): java.util.Enumeration<any>;
public getHeader(param0: string, param1: string): string;
public getSize(): number;
public setText(param0: string): void;
public constructor();
public getMatchingHeaderLines(names: string[]): java.util.Enumeration<any>;
public removeHeader(name: string): void;
public getInputStream(): java.io.InputStream;
public setDescription(description: string, charset: string): void;
public getHeader(name: string): string[];
public getNonMatchingHeaderLines(param0: string[]): java.util.Enumeration<any>;
public constructor(is: java.io.InputStream);
public getNonMatchingHeaders(names: string[]): java.util.Enumeration<any>;
public getHeader(param0: string): string[];
public setContentLanguage(languages: string[]): void;
public setHeader(param0: string, param1: string): void;
public setText(text: string, charset: string): void;
public writeTo(param0: java.io.OutputStream): void;
public removeHeader(param0: string): void;
public getContentID(): string;
public setDescription(description: string): void;
public setFileName(filename: string): void;
public getContentStream(): java.io.InputStream;
public addHeaderLine(param0: string): void;
public getDescription(): string;
public setText(text: string): void;
public getLineCount(): number;
public constructor(headers: javax.mail.internet.InternetHeaders, content: number[]);
public getMatchingHeaders(names: string[]): java.util.Enumeration<any>;
public getDataHandler(): javax.activation.DataHandler;
public isMimeType(param0: string): boolean;
public setDataHandler(param0: javax.activation.DataHandler): void;
public setDataHandler(content: javax.activation.DataHandler): void;
public constructor(bs: com.sun.mail.imap.protocol.BODYSTRUCTURE, sid: string, message: com.sun.mail.imap.IMAPMessage);
public setContent(mp: javax.mail.Multipart): void;
public setHeader(name: string, value: string): void;
public setDisposition(param0: string): void;
public setContentMD5(param0: string): void;
public getDisposition(): string;
public addHeader(param0: string, param1: string): void;
public getHeader(name: string, delimiter: string): string;
public isMimeType(mimeType: string): boolean;
public getMatchingHeaderLines(param0: string[]): java.util.Enumeration<any>;
public getFileName(): string;
public writeTo(os: java.io.OutputStream): void;
public getEncoding(): string;
public setContent(o: any, type: string): void;
public setText(param0: string, param1: string, param2: string): void;
public getContentType(): string;
public updateHeaders(): void;
public getContent(): any;
public setText(param0: string, param1: string): void;
public setContent(param0: javax.mail.Multipart): void;
public setFileName(param0: string): void;
public setContent(param0: any, param1: string): void;
public setDataHandler(dh: javax.activation.DataHandler): void;
public addHeaderLine(line: string): void;
public setText(text: string, charset: string, subtype: string): void;
public getAllHeaderLines(): java.util.Enumeration<any>;
public getContentMD5(): string;
public getContentLanguage(): string[];
public setDisposition(disposition: string): void;
public setContentMD5(md5: string): void;
public getAllHeaders(): java.util.Enumeration<any>;
public setContentLanguage(param0: string[]): void;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module imap {
export class IMAPFolder extends javax.mail.Folder implements javax.mail.UIDFolder, com.sun.mail.iap.ResponseHandler {
public static class: java.lang.Class<com.sun.mail.imap.IMAPFolder>;
public fullName: string;
public name: string;
public type: number;
public separator: string;
public availableFlags: javax.mail.Flags;
public permanentFlags: javax.mail.Flags;
public isNamespace: boolean;
public attributes: string[];
public protocol: com.sun.mail.imap.protocol.IMAPProtocol;
public messageCache: java.util.Vector<any>;
public messageCacheLock: any;
public uidTable: java.util.Hashtable<any,any>;
public static UNKNOWN_SEPARATOR: string;
public getType(): number;
public getPermanentFlags(): javax.mail.Flags;
public constructor(fullName: string, separator: string, store: com.sun.mail.imap.IMAPStore);
public getStoreProtocol(): com.sun.mail.imap.protocol.IMAPProtocol;
public getUIDNext(): number;
public getUID(message: javax.mail.Message): number;
public hasNewMessages(): boolean;
public list(param0: string): javax.mail.Folder[];
public getMessage(msgnum: number): javax.mail.Message;
public getDeletedMessageCount(): number;
public handleResponse(param0: com.sun.mail.iap.Response): void;
public doCommand(cmd: com.sun.mail.imap.IMAPFolder.ProtocolCommand): any;
public doCommandIgnoreFailure(cmd: com.sun.mail.imap.IMAPFolder.ProtocolCommand): any;
public create(param0: number): boolean;
public releaseStoreProtocol(p: com.sun.mail.imap.protocol.IMAPProtocol): void;
public myRights(): com.sun.mail.imap.Rights;
public setFlags(msgs: javax.mail.Message[], flag: javax.mail.Flags, value: boolean): void;
public renameTo(param0: javax.mail.Folder): boolean;
public constructor(li: com.sun.mail.imap.protocol.ListInfo, store: com.sun.mail.imap.IMAPStore);
public list(pattern: string): javax.mail.Folder[];
public getSeparator(): string;
public getMessageByUID(param0: number): javax.mail.Message;
public constructor(store: javax.mail.Store);
public listSubscribed(pattern: string): javax.mail.Folder[];
public setFlags(msgnums: number[], flag: javax.mail.Flags, value: boolean): void;
public getFolder(param0: string): javax.mail.Folder;
public fetch(msgs: javax.mail.Message[], fp: javax.mail.FetchProfile): void;
public getUID(param0: javax.mail.Message): number;
public close(param0: boolean): void;
public list(): javax.mail.Folder[];
public search(term: javax.mail.search.SearchTerm, msgs: javax.mail.Message[]): javax.mail.Message[];
public removeACL(name: string): void;
public delete(recurse: boolean): boolean;
public expunge(msgs: javax.mail.Message[]): javax.mail.Message[];
public getUIDValidity(): number;
public getMessagesByUID(uids: number[]): javax.mail.Message[];
public doOptionalCommand(err: string, cmd: com.sun.mail.imap.IMAPFolder.ProtocolCommand): any;
public appendMessages(msgs: javax.mail.Message[]): void;
public addRights(acl: com.sun.mail.imap.ACL): void;
public getMessageByUID(uid: number): javax.mail.Message;
public setQuota(quota: javax.mail.Quota): void;
public addMessages(msgs: javax.mail.Message[]): javax.mail.Message[];
public getMessagesByUID(param0: number[]): javax.mail.Message[];
public search(term: javax.mail.search.SearchTerm): javax.mail.Message[];
public appendUIDMessages(msgs: javax.mail.Message[]): com.sun.mail.imap.AppendUID[];
public open(mode: number): void;
public isOpen(): boolean;
public getAttributes(): string[];
public renameTo(f: javax.mail.Folder): boolean;
public doProtocolCommand(cmd: com.sun.mail.imap.IMAPFolder.ProtocolCommand): any;
public removeRights(acl: com.sun.mail.imap.ACL): void;
public getFolder(name: string): javax.mail.Folder;
public getMessage(param0: number): javax.mail.Message;
public open(param0: number): void;
public listRights(name: string): com.sun.mail.imap.Rights[];
public constructor(fullName: string, separator: string, store: com.sun.mail.imap.IMAPStore, isNamespace: boolean);
public setFlags(start: number, end: number, flag: javax.mail.Flags, value: boolean): void;
public getUnreadMessageCount(): number;
public addACL(acl: com.sun.mail.imap.ACL): void;
public listSubscribed(): javax.mail.Folder[];
public getACL(): com.sun.mail.imap.ACL[];
public idle(): void;
public getFullName(): string;
public getParent(): javax.mail.Folder;
public delete(param0: boolean): boolean;
public getMessageCount(): number;
public exists(): boolean;
public getNewMessageCount(): number;
public appendMessages(param0: javax.mail.Message[]): void;
public forceClose(): void;
public getMessagesByUID(start: number, param1: number): javax.mail.Message[];
public handleResponse(r: com.sun.mail.iap.Response): void;
public isSubscribed(): boolean;
public getMessagesByUID(param0: number, param1: number): javax.mail.Message[];
public getName(): string;
public setSubscribed(subscribe: boolean): void;
public expunge(): javax.mail.Message[];
public copyMessages(msgs: javax.mail.Message[], folder: javax.mail.Folder): void;
public create(type: number): boolean;
public getQuota(): javax.mail.Quota[];
public close(expunge: boolean): void;
}
export module IMAPFolder {
export class FetchProfileItem extends javax.mail.FetchProfile.Item {
public static class: java.lang.Class<com.sun.mail.imap.IMAPFolder.FetchProfileItem>;
public static HEADERS: com.sun.mail.imap.IMAPFolder.FetchProfileItem;
public static SIZE: com.sun.mail.imap.IMAPFolder.FetchProfileItem;
public constructor(name: string);
}
export class ProtocolCommand extends java.lang.Object {
public static class: java.lang.Class<com.sun.mail.imap.IMAPFolder.ProtocolCommand>;
/**
* Constructs a new instance of the com.sun.mail.imap.IMAPFolder$ProtocolCommand interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
doCommand(param0: com.sun.mail.imap.protocol.IMAPProtocol): any;
});
public constructor();
public doCommand(param0: com.sun.mail.imap.protocol.IMAPProtocol): any;
}
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module imap {
export class IMAPInputStream extends java.io.InputStream {
public static class: java.lang.Class<com.sun.mail.imap.IMAPInputStream>;
public available(): number;
public read(): number;
public read(b: number[], off: number, len: number): number;
public constructor();
public read(b: number[]): number;
public close(): void;
public constructor(msg: com.sun.mail.imap.IMAPMessage, section: string, max: number, peek: boolean);
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module imap {
export class IMAPMessage extends javax.mail.internet.MimeMessage {
public static class: java.lang.Class<com.sun.mail.imap.IMAPMessage>;
public bs: com.sun.mail.imap.protocol.BODYSTRUCTURE;
public envelope: com.sun.mail.imap.protocol.ENVELOPE;
public sectionId: string;
public setDescription(param0: string): void;
public setFlags(flag: javax.mail.Flags, set: boolean): void;
public addHeader(name: string, value: string): void;
public getFetchBlockSize(): number;
public getNonMatchingHeaderLines(names: string[]): java.util.Enumeration<any>;
public getHeader(param0: string, param1: string): string;
public setSubject(subject: string, charset: string): void;
public getFrom(): javax.mail.Address[];
public getSize(): number;
public setFrom(): void;
public setText(param0: string): void;
public constructor();
public getMatchingHeaderLines(names: string[]): java.util.Enumeration<any>;
public removeHeader(name: string): void;
public constructor(folder: javax.mail.Folder, is: java.io.InputStream, msgnum: number);
public setDescription(description: string, charset: string): void;
public setFrom(address: javax.mail.Address): void;
public getNonMatchingHeaderLines(param0: string[]): java.util.Enumeration<any>;
public setUID(uid: number): void;
public getHeader(param0: string): string[];
public setText(text: string, charset: string): void;
public constructor(source: javax.mail.internet.MimeMessage);
public writeTo(param0: java.io.OutputStream): void;
public getContentID(): string;
public setPeek(peek: boolean): void;
public getDescription(): string;
public setText(text: string): void;
public getLineCount(): number;
public getReceivedDate(): java.util.Date;
public setExpunged(expunged: boolean): void;
public getSubject(): string;
public addRecipients(type: javax.mail.Message.RecipientType, addresses: string): void;
public getPeek(): boolean;
public setHeader(name: string, value: string): void;
public setDisposition(param0: string): void;
public setContentMD5(param0: string): void;
public setRecipients(type: javax.mail.Message.RecipientType, addresses: string): void;
public isSet(flag: javax.mail.Flags.Flag): boolean;
public addHeader(param0: string, param1: string): void;
public isMimeType(mimeType: string): boolean;
public getReplyTo(): javax.mail.Address[];
public getFileName(): string;
public writeTo(os: java.io.OutputStream): void;
public getEncoding(): string;
public setText(param0: string, param1: string, param2: string): void;
public getContentType(): string;
public addFrom(addresses: javax.mail.Address[]): void;
public getContent(): any;
public setText(param0: string, param1: string): void;
public setContent(param0: javax.mail.Multipart): void;
public setFileName(param0: string): void;
public setContent(param0: any, param1: string): void;
public setMessageNumber(msgnum: number): void;
public setDataHandler(dh: javax.activation.DataHandler): void;
public writeTo(os: java.io.OutputStream, ignoreList: string[]): void;
public getAllHeaderLines(): java.util.Enumeration<any>;
public setContentMD5(md5: string): void;
public getMessageID(): string;
public getMatchingHeaders(param0: string[]): java.util.Enumeration<any>;
public getFlags(): javax.mail.Flags;
public getNonMatchingHeaders(param0: string[]): java.util.Enumeration<any>;
public getUID(): number;
public getInputStream(): java.io.InputStream;
public getSequenceNumber(): number;
public checkExpunged(): void;
public getHeader(name: string): string[];
public getNonMatchingHeaders(names: string[]): java.util.Enumeration<any>;
public constructor(folder: javax.mail.Folder, msgnum: number);
public setContentLanguage(languages: string[]): void;
public setHeader(param0: string, param1: string): void;
public removeHeader(param0: string): void;
public forceCheckExpunged(): void;
public getRecipients(type: javax.mail.Message.RecipientType): javax.mail.Address[];
public setDescription(description: string): void;
public setFileName(filename: string): void;
public setRecipients(type: javax.mail.Message.RecipientType, addresses: javax.mail.Address[]): void;
public getContentStream(): java.io.InputStream;
public constructor(folder: com.sun.mail.imap.IMAPFolder, msgnum: number, seqnum: number);
public setExpunged(set: boolean): void;
public addHeaderLine(param0: string): void;
public getMatchingHeaders(names: string[]): java.util.Enumeration<any>;
public constructor(session: javax.mail.Session, is: java.io.InputStream);
public getDataHandler(): javax.activation.DataHandler;
public setSender(address: javax.mail.Address): void;
public setReplyTo(addresses: javax.mail.Address[]): void;
public setSequenceNumber(seqnum: number): void;
public isMimeType(param0: string): boolean;
public setDataHandler(param0: javax.activation.DataHandler): void;
public setDataHandler(content: javax.activation.DataHandler): void;
public setSentDate(d: java.util.Date): void;
public setContentID(cid: string): void;
public addRecipients(type: javax.mail.Message.RecipientType, addresses: javax.mail.Address[]): void;
public setContent(mp: javax.mail.Multipart): void;
public getDisposition(): string;
public getHeader(name: string, delimiter: string): string;
public getMatchingHeaderLines(param0: string[]): java.util.Enumeration<any>;
public constructor(session: javax.mail.Session);
public getProtocol(): com.sun.mail.imap.protocol.IMAPProtocol;
public setContent(o: any, type: string): void;
public setSubject(subject: string): void;
public invalidateHeaders(): void;
public isREV1(): boolean;
public getMessageCacheLock(): any;
public constructor(folder: javax.mail.Folder, headers: javax.mail.internet.InternetHeaders, content: number[], msgnum: number);
public addHeaderLine(line: string): void;
public getSentDate(): java.util.Date;
public getSender(): javax.mail.Address;
public setText(text: string, charset: string, subtype: string): void;
public getContentMD5(): string;
public getContentLanguage(): string[];
public setDisposition(disposition: string): void;
public getInReplyTo(): string;
public getAllHeaders(): java.util.Enumeration<any>;
public setContentLanguage(param0: string[]): void;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module imap {
export class IMAPMultipartDataSource extends javax.mail.internet.MimePartDataSource implements javax.mail.MultipartDataSource {
public static class: java.lang.Class<com.sun.mail.imap.IMAPMultipartDataSource>;
public getMessageContext(): javax.mail.MessageContext;
public getCount(): number;
public getBodyPart(index: number): javax.mail.BodyPart;
public constructor(part: javax.mail.internet.MimePart, bs: com.sun.mail.imap.protocol.BODYSTRUCTURE[], sectionId: string, msg: com.sun.mail.imap.IMAPMessage);
public getBodyPart(param0: number): javax.mail.BodyPart;
public constructor(part: javax.mail.internet.MimePart);
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module imap {
export class IMAPNestedMessage extends com.sun.mail.imap.IMAPMessage {
public static class: java.lang.Class<com.sun.mail.imap.IMAPNestedMessage>;
public getMatchingHeaders(param0: string[]): java.util.Enumeration<any>;
public isExpunged(): boolean;
public setDescription(param0: string): void;
public setFlags(flag: javax.mail.Flags, set: boolean): void;
public addHeader(name: string, value: string): void;
public getFetchBlockSize(): number;
public getNonMatchingHeaders(param0: string[]): java.util.Enumeration<any>;
public getNonMatchingHeaderLines(names: string[]): java.util.Enumeration<any>;
public getHeader(param0: string, param1: string): string;
public getSize(): number;
public setText(param0: string): void;
public getMatchingHeaderLines(names: string[]): java.util.Enumeration<any>;
public removeHeader(name: string): void;
public getInputStream(): java.io.InputStream;
public setDescription(description: string, charset: string): void;
public getSequenceNumber(): number;
public checkExpunged(): void;
public getHeader(name: string): string[];
public getNonMatchingHeaderLines(param0: string[]): java.util.Enumeration<any>;
public getNonMatchingHeaders(names: string[]): java.util.Enumeration<any>;
public getHeader(param0: string): string[];
public setContentLanguage(languages: string[]): void;
public setHeader(param0: string, param1: string): void;
public setText(text: string, charset: string): void;
public writeTo(param0: java.io.OutputStream): void;
public removeHeader(param0: string): void;
public getContentID(): string;
public setDescription(description: string): void;
public setFileName(filename: string): void;
public addHeaderLine(param0: string): void;
public getDescription(): string;
public setText(text: string): void;
public getLineCount(): number;
public getMatchingHeaders(names: string[]): java.util.Enumeration<any>;
public getDataHandler(): javax.activation.DataHandler;
public isMimeType(param0: string): boolean;
public setDataHandler(param0: javax.activation.DataHandler): void;
public setDataHandler(content: javax.activation.DataHandler): void;
public setDisposition(param0: string): void;
public setContent(mp: javax.mail.Multipart): void;
public setHeader(name: string, value: string): void;
public setContentMD5(param0: string): void;
public getDisposition(): string;
public addHeader(param0: string, param1: string): void;
public getHeader(name: string, delimiter: string): string;
public isMimeType(mimeType: string): boolean;
public getMatchingHeaderLines(param0: string[]): java.util.Enumeration<any>;
public getFileName(): string;
public writeTo(os: java.io.OutputStream): void;
public getProtocol(): com.sun.mail.imap.protocol.IMAPProtocol;
public getEncoding(): string;
public setContent(o: any, type: string): void;
public setText(param0: string, param1: string, param2: string): void;
public getContentType(): string;
public getContent(): any;
public setText(param0: string, param1: string): void;
public setContent(param0: javax.mail.Multipart): void;
public setFileName(param0: string): void;
public setContent(param0: any, param1: string): void;
public isREV1(): boolean;
public getMessageCacheLock(): any;
public addHeaderLine(line: string): void;
public writeTo(os: java.io.OutputStream, ignoreList: string[]): void;
public setText(text: string, charset: string, subtype: string): void;
public getAllHeaderLines(): java.util.Enumeration<any>;
public getContentMD5(): string;
public getContentLanguage(): string[];
public setDisposition(disposition: string): void;
public setContentMD5(md5: string): void;
public getAllHeaders(): java.util.Enumeration<any>;
public setContentLanguage(param0: string[]): void;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module imap {
export class IMAPSSLStore extends com.sun.mail.imap.IMAPStore {
public static class: java.lang.Class<com.sun.mail.imap.IMAPSSLStore>;
public handleResponse(r: com.sun.mail.iap.Response): void;
public constructor(session: javax.mail.Session, url: javax.mail.URLName, name: string, defaultPort: number, isSSL: boolean);
public getQuota(param0: string): javax.mail.Quota[];
public handleResponse(param0: com.sun.mail.iap.Response): void;
public getQuota(root: string): javax.mail.Quota[];
public setQuota(quota: javax.mail.Quota): void;
public constructor(session: javax.mail.Session, url: javax.mail.URLName);
public setQuota(param0: javax.mail.Quota): void;
}
}
}
}
}
declare module com {
export module sun {
export module mail {
export module imap {
export class IMAPStore extends javax.mail.Store implements javax.mail.QuotaAwareStore, com.sun.mail.iap.ResponseHandler {
public static class: java.lang.Class<com.sun.mail.imap.IMAPStore>;
public static RESPONSE: number;
public setPassword(password: string): void;
public construc