com.openexchange.mail.json.parser
Class FolderParser

java.lang.Object
  extended by com.openexchange.mail.json.parser.FolderParser

public final class FolderParser
extends java.lang.Object

FolderParser - Parses instances of JSONObject to instances of MailFolder

Author:
Thorben Betten

Method Summary
static void parse(org.json.JSONObject jsonObj, MailFolderDescription mailFolder, com.openexchange.session.Session session, int accountId)
          Parses given instance of JSONObject to given instance of MailFolder
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static void parse(org.json.JSONObject jsonObj,
                         MailFolderDescription mailFolder,
                         com.openexchange.session.Session session,
                         int accountId)
                  throws MailException
Parses given instance of JSONObject to given instance of MailFolder

Parameters:
jsonObj - The JSON object (source)
mailFolder - The mail folder (target), which should be empty
session - The session
accountId - The account ID
Throws:
MailException - If parsing fails