Package org.eclipse.ecf.internal.provider.vbulletin.identity

Examples of org.eclipse.ecf.internal.provider.vbulletin.identity.ThreadMessageID


    ThreadMessage msg;
    List<ThreadMessage> messages = new ArrayList<ThreadMessage>();
    m = PAT_MSG.matcher(seq);
    while (m.find()) {
      ThreadMessageFactory tmf = new ThreadMessageFactory();
      ThreadMessageID id = null;
      try {
        id = (ThreadMessageID) tmf.createBBObjectId(namespace, baseURL,
            m.group(1));
      } catch (NumberFormatException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      } catch (IDCreateException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
      if (lastReadId == null
          || id.getLongValue() > ((ThreadMessageID) lastReadId)
              .getLongValue()) {
        String msgSrc = m.group(2);
        msg = parseMessage2(id, msgSrc);
        if (msg != null) {
          if (desc) {
View Full Code Here


public class ThreadMessageFactory implements IBBObjectFactory {
  public ID createBBObjectId(Namespace namespace, String stringValue)
      throws IDCreateException {
    try {
      return new ThreadMessageID((VBNamespace) namespace, new URI(
          stringValue));
    } catch (URISyntaxException e) {
      throw new IDCreateException(e);
    }
  }
View Full Code Here

  }

  public ID createBBObjectId(Namespace namespace, URL baseURL, String longValue)
      throws IDCreateException {
    try {
      return new ThreadMessageID((VBNamespace) namespace, baseURL,
          Long.parseLong(longValue));
    } catch (URISyntaxException e) {
      throw new IDCreateException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.internal.provider.vbulletin.identity.ThreadMessageID

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.