org.qedeq.kernel.bo.service.internal
Class Element2Utf8Impl

java.lang.Object
  extended by org.qedeq.kernel.bo.service.internal.Element2Utf8Impl
All Implemented Interfaces:
Element2Utf8

public final class Element2Utf8Impl
extends java.lang.Object
implements Element2Utf8

Transfer a QEDEQ formulas into UTF-8 text.

Author:
Michael Meyling

Constructor Summary
Element2Utf8Impl(Element2LatexImpl converter)
          Constructor.
 
Method Summary
 java.lang.String getUtf8(Element element)
          Get UTF-8 element presentation.
 java.lang.String[] getUtf8(Element element, int maxCols)
          Get an UTF-8 element presentation that doesn't exceed the given maximum column length.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Element2Utf8Impl

public Element2Utf8Impl(Element2LatexImpl converter)
Constructor.

Parameters:
converter - This converter can produce at least LaTeX.
Method Detail

getUtf8

public java.lang.String getUtf8(Element element)
Description copied from interface: Element2Utf8
Get UTF-8 element presentation.

Specified by:
getUtf8 in interface Element2Utf8
Parameters:
element - Print this element.
Returns:
UTF-8 form of element.

getUtf8

public java.lang.String[] getUtf8(Element element,
                                  int maxCols)
Description copied from interface: Element2Utf8
Get an UTF-8 element presentation that doesn't exceed the given maximum column length. If the presentation doesn't fit into one row it is split and several rows are returned.

Specified by:
getUtf8 in interface Element2Utf8
Parameters:
element - Print this element.
maxCols - Maximum column number. If equal or below zero a maximum is neglected.
Returns:
UTF-8 form of element (might be one or several rows).


Copyright © 2014. All Rights Reserved.