StandardFormatter

Inheritance: java.lang.Object, com.aspose.email.Formatter

public class StandardFormatter extends Formatter

Represents the class for formatting log entry messsages.

Constructors

ConstructorDescription
StandardFormatter()Initializes a new instance of the StandardFormatter class.
StandardFormatter(StringBuilder headerText)Initializes a new instance of the StandardFormatter class.
StandardFormatter(String headerText)Initializes a new instance of the StandardFormatter class.

Methods

MethodDescription
equals(Object arg0)
format(LogEntry entry)Formats a log entry and return a string to be outputted.
format(Date datatime)Formats a datetime and return a string to be outputted.
getClass()
getDefaultFormatter()Gets or sets default formatter
getFooter()Gest the footer string.
getHeader()Gets the log header.
getLogHeader()Gets or sets the log header
hashCode()
notify()
notifyAll()
setDefaultFormatter(IFormatter value)Gets or sets default formatter
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

StandardFormatter()

public StandardFormatter()

Initializes a new instance of the StandardFormatter class.

StandardFormatter(StringBuilder headerText)

public StandardFormatter(StringBuilder headerText)

Initializes a new instance of the StandardFormatter class.

Parameters:

ParameterTypeDescription
headerTextjava.lang.StringBuilderThe header text.

StandardFormatter(String headerText)

public StandardFormatter(String headerText)

Initializes a new instance of the StandardFormatter class.

Parameters:

ParameterTypeDescription
headerTextjava.lang.StringThe header text.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

format(LogEntry entry)

public String format(LogEntry entry)

Formats a log entry and return a string to be outputted.

Parameters:

ParameterTypeDescription
entryLogEntryThe Log entry to format.

Returns: java.lang.String - String representing the log entry.

format(Date datatime)

public String format(Date datatime)

Formats a datetime and return a string to be outputted.

Parameters:

ParameterTypeDescription
datatimejava.util.DateThe datetime value for formatting to string

Returns: java.lang.String

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDefaultFormatter()

public static IFormatter getDefaultFormatter()

Gets or sets default formatter

Returns: IFormatter

getFooter()

public String getFooter()

Gest the footer string.

Returns: java.lang.String

getHeader()

public String getHeader()

Gets the log header.

Value:

Returns: java.lang.String

getLogHeader()

public String getLogHeader()

Gets or sets the log header

Returns: java.lang.String

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setDefaultFormatter(IFormatter value)

public static void setDefaultFormatter(IFormatter value)

Gets or sets default formatter

Parameters:

ParameterTypeDescription
valueIFormatter

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int