diff options
Diffstat (limited to 'xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxw')
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxw/SxwDocument.java | 36 | ||||
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxw/SxwPluginFactory.java | 26 |
2 files changed, 26 insertions, 36 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxw/SxwDocument.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxw/SxwDocument.java index 8728319d953e..37cf99699064 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxw/SxwDocument.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxw/SxwDocument.java @@ -22,52 +22,46 @@ import org.openoffice.xmerge.converter.xml.OfficeDocument; import org.openoffice.xmerge.converter.xml.OfficeConstants; /** - * This class is an implementation of <code>OfficeDocument</code> for - * the SXW format. + * This class is an implementation of {@code OfficeDocument} for the SXW format. */ public class SxwDocument extends OfficeDocument { - /** - * Constructor with arguments to set <code>name</code>. + * Constructor with arguments to set {@code name}. * - * @param name The name of the <code>Document</code> + * @param name The name of the {@code Document}. */ public SxwDocument(String name) { super(name); } - /** - * Constructor with arguments to set <code>name</code>, the - * <code>namespaceAware</code> flag, and the <code>validating</code> - * flag. + * Constructor with arguments to set {@code name}, the {@code namespaceAware} + * flag, and the {@code validating} flag. * - * @param name The name of the <code>Document</code>. - * @param namespaceAware The value of the namespaceAware flag. - * @param validating The value of the validating flag. + * @param name The name of the {@code Document}. + * @param namespaceAware The value of the {@code namespaceAware} flag. + * @param validating The value of the {@code validating} flag. */ public SxwDocument(String name, boolean namespaceAware, boolean validating) { super(name, namespaceAware, validating); } - /** - * Returns the Office file extension for the SXW format. + * Returns the Office file extension for the SXW format. * - * @return The Office file extension for the SXW format. + * @return The Office file extension for the SXW format. */ @Override protected String getFileExtension() { return OfficeConstants.SXW_FILE_EXTENSION; } - /** - * Returns the Office attribute for the SXW format. + * Returns the Office attribute for the SXW format. * - * @return The Office attribute for the SXW format. + * @return The Office attribute for the SXW format. */ @Override protected String getOfficeClassAttribute() { @@ -77,12 +71,10 @@ public class SxwDocument extends OfficeDocument { /** * Method to return the MIME type of the document. * - * @return String The document's MIME type. + * @return The document's MIME type. */ @Override protected final String getDocumentMimeType() { return OfficeConstants.SXW_MIME_TYPE; } - -} - +}
\ No newline at end of file diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxw/SxwPluginFactory.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxw/SxwPluginFactory.java index c0cb42d1a122..c529a3126bd1 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxw/SxwPluginFactory.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/sxw/SxwPluginFactory.java @@ -26,44 +26,42 @@ import org.openoffice.xmerge.Document; import org.openoffice.xmerge.util.registry.ConverterInfo; /** - * General implementation of the <code>PluginFactory</code> interface - * for SXW documents. + * General implementation of the {@code PluginFactory} interface for SXW + * documents. * - * @see org.openoffice.xmerge.DocumentDeserializer - * @see org.openoffice.xmerge.DocumentMerger - * @see org.openoffice.xmerge.DocumentSerializer + * @see org.openoffice.xmerge.DocumentDeserializer + * @see org.openoffice.xmerge.DocumentMerger + * @see org.openoffice.xmerge.DocumentSerializer */ public abstract class SxwPluginFactory extends PluginFactory { /** - * Constructor that caches the <code>ConvertInfo</code> that - * corresponds to the registry information for this plug-in. + * Constructor that caches the {@code ConvertInfo} that corresponds to the + * registry information for this plug-in. * - * @param ci <code>ConvertInfo</code> object. + * @param ci {@code ConvertInfo} object. */ public SxwPluginFactory (ConverterInfo ci) { super(ci); } - @Override public Document createOfficeDocument(String name, InputStream is) throws IOException { - // read zipped XML stream + // Read zipped XML stream SxwDocument doc = new SxwDocument(name); doc.read(is); return doc; } - @Override + @Override public Document createOfficeDocument(String name, InputStream is,boolean isZip) throws IOException { - // read XML stream + // Read XML stream SxwDocument doc = new SxwDocument(name); doc.read(is,isZip); return doc; } -} - +}
\ No newline at end of file |