org.brains2b.coffee.util
Class SubjectHelper

java.lang.Object
  extended by org.brains2b.coffee.util.SubjectHelper

public class SubjectHelper
extends java.lang.Object

Helper class for Article Subjects

Version:
0.89.1 [25-02-2008]
Author:
dennis@brains2b.nl

Nested Class Summary
static class SubjectHelper.SubjectInfo
           
 
Constructor Summary
SubjectHelper()
           
 
Method Summary
static java.lang.String createSubject(Article a, Options o, int file, int totalFile)
          create the subject for an Article with attachment being posted
 SubjectHelper.SubjectInfo getTruncated(java.lang.String s)
          Split the Subject text into String, parts and totals for use in MultiPartGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectHelper

public SubjectHelper()
Method Detail

getTruncated

public final SubjectHelper.SubjectInfo getTruncated(java.lang.String s)
Split the Subject text into String, parts and totals for use in MultiPartGroup

Parameters:
s - String, the complete subject
Returns:
SubjectHelper.SubjectInfo
See Also:
MultiPartGroup

createSubject

public static final java.lang.String createSubject(Article a,
                                                   Options o,
                                                   int file,
                                                   int totalFile)
create the subject for an Article with attachment being posted

Parameters:
a - Article, the article to Post
o - Options, the Options for posting messages
file - int, the file in a collection of files
totalFile - int , the total number of files
Returns:
String, the formatted Subject