]> source.dussan.org Git - poi.git/commitdiff
fixed javadoc warnings
authorYegor Kozlov <yegor@apache.org>
Fri, 9 Dec 2011 16:48:38 +0000 (16:48 +0000)
committerYegor Kozlov <yegor@apache.org>
Fri, 9 Dec 2011 16:48:38 +0000 (16:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1212511 13f79535-47bb-0310-9956-ffa450edef68

30 files changed:
src/java/org/apache/poi/POIDocument.java
src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java
src/java/org/apache/poi/poifs/filesystem/EntryUtils.java
src/java/org/apache/poi/poifs/filesystem/FilteringDirectoryNode.java
src/java/org/apache/poi/poifs/filesystem/Ole10Native.java
src/java/org/apache/poi/ss/usermodel/ConditionalFormatting.java
src/java/org/apache/poi/ss/usermodel/SheetConditionalFormatting.java
src/java/org/apache/poi/ss/usermodel/Workbook.java
src/java/org/apache/poi/util/LittleEndian.java
src/ooxml/java/org/apache/poi/xslf/usermodel/RenderableShape.java
src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFConnectorShape.java
src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFFontManager.java
src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFImageRendener.java [deleted file]
src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFImageRenderer.java [new file with mode: 0644]
src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFPictureShape.java
src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFRenderingHint.java
src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java
src/ooxml/java/org/apache/poi/xssf/usermodel/charts/XSSFManualLayout.java
src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java
src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFFootnote.java
src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFFootnotes.java
src/scratchpad/src/org/apache/poi/hssf/converter/AbstractExcelUtils.java
src/scratchpad/src/org/apache/poi/hwpf/model/CHPBinTable.java
src/scratchpad/src/org/apache/poi/hwpf/model/CHPFormattedDiskPage.java
src/scratchpad/src/org/apache/poi/hwpf/model/FileInformationBlock.java
src/scratchpad/src/org/apache/poi/hwpf/model/PAPBinTable.java
src/scratchpad/src/org/apache/poi/hwpf/model/PAPFormattedDiskPage.java
src/scratchpad/src/org/apache/poi/hwpf/model/SectionDescriptor.java
src/scratchpad/src/org/apache/poi/hwpf/usermodel/Picture.java

index e7ec12a58114a7e568f53a57d1d259278a13a122..169e9241bcf2703bbc3f108444ee66b6dc53ad8b 100644 (file)
@@ -245,8 +245,8 @@ public abstract class POIDocument {
 
    /**
     * Copies nodes from one POIFS to the other minus the excepts
-    * @param source is the source POIFS to copy from
-    * @param target is the target POIFS to copy to
+    * @param sourceRoot is the source POIFS to copy from
+    * @param targetRoot is the target POIFS to copy to
     * @param excepts is a list of Strings specifying what nodes NOT to copy
     */
     @Deprecated
index c0af3dda5475d925d9ee33f99d23f2ebada0b7b4..a208b2eb216186e39dfab20b182b569f788e4d5a 100644 (file)
@@ -547,9 +547,8 @@ public final class HSSFWorkbook extends POIDocument implements org.apache.poi.ss
      * @param sheetIx number (0 based)
      * @throws IllegalArgumentException if the name is null or invalid
      *  or workbook already contains a sheet with this name
-     * @see {@link #createSheet(String)}
-     * @see {@link org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)}
-     *      for a safe way to create valid names
+     * @see #createSheet(String)
+     * @see org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)
      */
     public void setSheetName(int sheetIx, String name) {
         if (name == null) {
@@ -781,8 +780,7 @@ public final class HSSFWorkbook extends POIDocument implements org.apache.poi.ss
      * @return Sheet representing the new sheet.
      * @throws IllegalArgumentException if the name is null or invalid
      *  or workbook already contains a sheet with this name
-     * @see {@link org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)}
-     *      for a safe way to create valid names
+     * @see org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)
      */
     public HSSFSheet createSheet(String sheetname)
     {
index 2c9308bfe8ccf85e2f68a86e3a65da800dbf8d5f..3233dfa260974e45e92633b4179987145dd6ce5c 100644 (file)
@@ -61,12 +61,10 @@ public class EntryUtils
     /**
      * Copies all the nodes from one POIFS Directory to another
      * 
-     * @param source
+     * @param sourceRoot
      *            is the source Directory to copy from
-     * @param target
+     * @param targetRoot
      *            is the target Directory to copy to
-     * @param excepts
-     *            is a list of Strings specifying what nodes NOT to copy
      */
     public static void copyNodes(DirectoryEntry sourceRoot,
             DirectoryEntry targetRoot) throws IOException
@@ -79,8 +77,8 @@ public class EntryUtils
     /**
      * Copies nodes from one Directory to the other minus the excepts
      * 
-     * @param source The filtering source Directory to copy from
-     * @param target The filtering target Directory to copy to
+     * @param filteredSource The filtering source Directory to copy from
+     * @param filteredTarget The filtering target Directory to copy to
      */
     public static void copyNodes( FilteringDirectoryNode filteredSource,
             FilteringDirectoryNode filteredTarget ) throws IOException
@@ -93,9 +91,9 @@ public class EntryUtils
     /**
      * Copies nodes from one Directory to the other minus the excepts
      * 
-     * @param source
+     * @param sourceRoot
      *            is the source Directory to copy from
-     * @param target
+     * @param targetRoot
      *            is the target Directory to copy to
      * @param excepts
      *            is a list of Strings specifying what nodes NOT to copy
index 737f8d97c51febe9c730f9b1cf7283f6f976fe48..861768aee7e2a802098bba911a717be0ebe94221 100644 (file)
@@ -57,7 +57,7 @@ public class FilteringDirectoryNode implements DirectoryEntry
     *  will exclude entries such as "MyNode" and "MyDir/IgnoreNode".
     * The excludes can stretch into children, if they contain a /.
     *  
-    * @param entry The Directory to filter
+    * @param directory The Directory to filter
     * @param excludes The Entries to exclude
     */
    public FilteringDirectoryNode(DirectoryEntry directory, Collection<String> excludes) {
index db05d97d9f46fe6bd78a57d1d3b3b962ba950ba3..1ef66d5e7c5c82b9eeef6dfe019e100cb9ffe6f1 100644 (file)
@@ -66,7 +66,7 @@ public class Ole10Native {
    * to include a stream &quot;{01}Ole10Native&quot; which contains the actual\r
    * data relevant for this class.\r
    *\r
-   * @param poifs POI Filesystem object\r
+   * @param directory POI Filesystem object\r
    * @return Returns an instance of this class\r
    * @throws IOException on IO error\r
    * @throws Ole10NativeException on invalid or unexcepted data format\r
index 8b117ce31be6555f4d948c0acfb0e51999e842cd..674c0470beabb87e0c1818783f8621f8c42902f4 100644 (file)
@@ -44,7 +44,8 @@ import org.apache.poi.ss.util.CellRangeAddress;
  *  </LI>\r
  *  </UL>\r
  *\r
- * Use {@link org.apache.poi.hssf.usermodel.Sheet#getSheetConditionalFormatting()} to get access to an instance of this class.\r
+ * Use {@link org.apache.poi.ss.usermodel.Sheet#getSheetConditionalFormatting()}\r
+ * to get access to an instance of this class.\r
  * <P>\r
  * To create a new Conditional Formatting set use the following approach:\r
  *\r
index 37387c8da1d2d9f5681670afa6cc2de927c6711f..e20a8f74b6c8554185804aaf6da08c390d422235 100644 (file)
@@ -46,7 +46,7 @@ public interface SheetConditionalFormatting {
      *\r
      * @param regions - list of rectangular regions to apply conditional formatting rules\r
      * @param rule1 -  the first rule\r
-     * @param rule1 -  the second rule\r
+     * @param rule2 -  the second rule\r
      *\r
      * @return index of the newly created Conditional Formatting object\r
      */\r
index 3ee44fdc1f7fc4ed82b6d43e2a99ed421cf41bab..ce117f4cde3c9de0ef014b2927c9cd300702bfe6 100644 (file)
@@ -129,13 +129,15 @@ public interface Workbook {
 
     /**
      * Set the sheet name.
-     *
+     * <p>
+     * See {@link org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)}
+     *      for a safe way to create valid names
+     * </p>
      * @param sheet number (0 based)
      * @throws IllegalArgumentException if the name is null or invalid
      *  or workbook already contains a sheet with this name
-     * @see {@link #createSheet(String)}
-     * @see {@link org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)}
-     *      for a safe way to create valid names
+     * @see #createSheet(String)
+     * @see org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)
      */
     void setSheetName(int sheet, String name);
 
@@ -208,12 +210,15 @@ public interface Workbook {
      * The string MUST NOT begin or end with the single quote (') character.
      * </p>
      *
+     * <p>
+     * See {@link org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)}
+     *      for a safe way to create valid names
+     * </p>
      * @param sheetname  sheetname to set for the sheet.
      * @return Sheet representing the new sheet.
      * @throws IllegalArgumentException if the name is null or invalid
      *  or workbook already contains a sheet with this name
-     * @see {@link org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)}
-     *      for a safe way to create valid names
+     * @see org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)
      */
     Sheet createSheet(String sheetname);
 
index bf654baa0707ee8664828c4136aab1030ffac9cc..c07c4beb307bf8cedee31e463261f0e0ceb46fb0 100644 (file)
@@ -573,7 +573,7 @@ public class LittleEndian implements LittleEndianConsts
      * 
      * @param data
      *            the byte array
-     * @param offset
+     * @param startOffset
      *            a starting offset into the byte array
      * @param value
      *            the short (16-bit) values
index b46ae8b2bce39cd86b8961046b96970e637366d7..1d3ed4e11e983f2f36fe84015bd8928c146850b0 100644 (file)
@@ -65,7 +65,6 @@ import java.util.ArrayList;
 import java.util.Arrays;\r
 import java.util.Collection;\r
 import java.util.Comparator;\r
-import java.util.List;\r
 \r
 /**\r
  * Encapsulates logic to translate DrawingML objects to Java2D\r
@@ -142,10 +141,10 @@ class RenderableShape {
         String blipId = blip.getEmbed();\r
         PackageRelationship rel = parentPart.getRelationship(blipId);\r
         if (rel != null) {\r
-            XSLFImageRendener renderer = null;\r
+            XSLFImageRenderer renderer = null;\r
             if (graphics != null)\r
-                renderer = (XSLFImageRendener) graphics.getRenderingHint(XSLFRenderingHint.IMAGE_RENDERER);\r
-            if (renderer == null) renderer = new XSLFImageRendener();\r
+                renderer = (XSLFImageRenderer) graphics.getRenderingHint(XSLFRenderingHint.IMAGE_RENDERER);\r
+            if (renderer == null) renderer = new XSLFImageRenderer();\r
 \r
             try {\r
                 BufferedImage img = renderer.readImage(parentPart.getRelatedPart(rel));\r
index 3f7d88b87061372f9cd52067cae12006f8a3a774..4018d4d21425a71dab09c0469ecfe2b3952cc318 100644 (file)
@@ -77,8 +77,7 @@ public class XSLFConnectorShape extends XSLFSimpleShape {
 \r
 \r
     /**\r
-     * YK: dashing of lines is suppressed for now.\r
-     * @return\r
+     * YK: shadows of lines are suppressed for now.\r
      */\r
     @Override\r
     public XSLFShadow getShadow() {\r
index e61933fb37391adec2a2906f56af9a2bf75c101a..cc5fc6c2d5136f3f29a3a383f02ec4a30538841d 100644 (file)
@@ -29,7 +29,7 @@ public interface XSLFFontManager {
     /**\r
      * select a font to be used to paint text\r
      *\r
-     * @param family the font family as defined in the .pptx file.\r
+     * @param typeface the font family as defined in the .pptx file.\r
      * This can be unknown or missing in the graphic environment.\r
      *\r
      * @return the font to be used to paint text\r
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFImageRendener.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFImageRendener.java
deleted file mode 100644 (file)
index 06ba185..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-/*\r
- *  ====================================================================\r
- *    Licensed to the Apache Software Foundation (ASF) under one or more\r
- *    contributor license agreements.  See the NOTICE file distributed with\r
- *    this work for additional information regarding copyright ownership.\r
- *    The ASF licenses this file to You under the Apache License, Version 2.0\r
- *    (the "License"); you may not use this file except in compliance with\r
- *    the License.  You may obtain a copy of the License at\r
- *\r
- *        http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- *    Unless required by applicable law or agreed to in writing, software\r
- *    distributed under the License is distributed on an "AS IS" BASIS,\r
- *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- *    See the License for the specific language governing permissions and\r
- *    limitations under the License.\r
- * ====================================================================\r
- */\r
-\r
-package org.apache.poi.xslf.usermodel;\r
-\r
-import org.apache.poi.openxml4j.opc.PackagePart;\r
-import org.apache.poi.util.Beta;\r
-\r
-import javax.imageio.ImageIO;\r
-import java.awt.Graphics2D;\r
-import java.awt.Image;\r
-import java.awt.geom.AffineTransform;\r
-import java.awt.geom.Rectangle2D;\r
-import java.awt.image.BufferedImage;\r
-import java.io.ByteArrayInputStream;\r
-import java.io.IOException;\r
-import java.io.InputStream;\r
-\r
-/**\r
- * For now this class renders only images supported by the javax.imageio.ImageIO\r
- * framework. Subclasses can override this class to support other formats, for\r
- * example, Use Apache batik to render WMF:\r
- * \r
- * <pre>\r
- * <code>\r
- * @Override\r
- * public class MyImageRendener extends XSLFImageRendener{\r
- * public boolean drawImage(Graphics2D graphics, XSLFPictureData data, Rectangle2D anchor){\r
- *     boolean ok = super.drawImage(graphics, data, anchor);\r
- *     if(!ok){\r
- *             // see what type of image we are\r
- *             String contentType = data.getPackagePart().getContentType();\r
- *             if(contentType.equals("image/wmf")){\r
- *                     // use Apache Batik to handle WMF\r
- *                     // see http://xmlgraphics.apache.org/batik/\r
- *             }\r
- *             \r
- *     }\r
- *     return ok;\r
- * }\r
- * }\r
- * </code>\r
- * </pre>\r
- * \r
- * and then pass this class to your instance of java.awt.Graphics2D:\r
- * \r
- * <pre>\r
- * <code>\r
- * graphics.setRenderingHint(XSLFRenderingHint.IMAGE_RENDERER, new MyImageRendener());\r
- * </code>\r
- * </pre>\r
- * \r
- * @author Yegor Kozlov\r
- */\r
-@Beta\r
-public class XSLFImageRendener {\r
-\r
-       /**\r
-        * Render picture data into the supplied graphics\r
-        * \r
-        * @return true if the picture data was succesfully renderered\r
-        */\r
-       public boolean drawImage(Graphics2D graphics, XSLFPictureData data,\r
-                       Rectangle2D anchor) {\r
-               try {\r
-                       BufferedImage img = ImageIO.read(data.getPackagePart().getInputStream());\r
-            double sx = anchor.getWidth()/img.getWidth();\r
-            double sy = anchor.getHeight()/img.getHeight();\r
-            double tx = anchor.getX();\r
-            double ty = anchor.getY();\r
-            AffineTransform at = new AffineTransform(sx, 0, 0, sy, tx, ty) ;\r
-\r
-            graphics.drawRenderedImage(img, at);\r
-\r
-                       return true;\r
-               } catch (Exception e) {\r
-                       return false;\r
-               }\r
-\r
-       }\r
-\r
-    /**\r
-     * Create a buffered image from the supplied package part.\r
-     * This method is called to create texture paints.\r
-     *\r
-     * @return a <code>BufferedImage</code> containing the decoded\r
-     * contents of the input, or <code>null</code>.\r
-     */\r
-    public BufferedImage readImage(PackagePart packagePart) throws IOException {\r
-        return ImageIO.read(packagePart.getInputStream());\r
-    }\r
-}
\ No newline at end of file
diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFImageRenderer.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFImageRenderer.java
new file mode 100644 (file)
index 0000000..f180aba
--- /dev/null
@@ -0,0 +1,107 @@
+/*\r
+ *  ====================================================================\r
+ *    Licensed to the Apache Software Foundation (ASF) under one or more\r
+ *    contributor license agreements.  See the NOTICE file distributed with\r
+ *    this work for additional information regarding copyright ownership.\r
+ *    The ASF licenses this file to You under the Apache License, Version 2.0\r
+ *    (the "License"); you may not use this file except in compliance with\r
+ *    the License.  You may obtain a copy of the License at\r
+ *\r
+ *        http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ *    Unless required by applicable law or agreed to in writing, software\r
+ *    distributed under the License is distributed on an "AS IS" BASIS,\r
+ *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ *    See the License for the specific language governing permissions and\r
+ *    limitations under the License.\r
+ * ====================================================================\r
+ */\r
+\r
+package org.apache.poi.xslf.usermodel;\r
+\r
+import org.apache.poi.openxml4j.opc.PackagePart;\r
+import org.apache.poi.util.Beta;\r
+\r
+import javax.imageio.ImageIO;\r
+import java.awt.Graphics2D;\r
+import java.awt.Image;\r
+import java.awt.geom.AffineTransform;\r
+import java.awt.geom.Rectangle2D;\r
+import java.awt.image.BufferedImage;\r
+import java.io.ByteArrayInputStream;\r
+import java.io.IOException;\r
+import java.io.InputStream;\r
+\r
+/**\r
+ * For now this class renders only images supported by the javax.imageio.ImageIO\r
+ * framework. Subclasses can override this class to support other formats, for\r
+ * example, Use Apache batik to render WMF:\r
+ * \r
+ * <pre>\r
+ * <code>\r
+ * public class MyImageRendener extends XSLFImageRendener{\r
+ * public boolean drawImage(Graphics2D graphics, XSLFPictureData data, Rectangle2D anchor){\r
+ *     boolean ok = super.drawImage(graphics, data, anchor);\r
+ *     if(!ok){\r
+ *             // see what type of image we are\r
+ *             String contentType = data.getPackagePart().getContentType();\r
+ *             if(contentType.equals("image/wmf")){\r
+ *                     // use Apache Batik to handle WMF\r
+ *                     // see http://xmlgraphics.apache.org/batik/\r
+ *             }\r
+ *             \r
+ *     }\r
+ *     return ok;\r
+ * }\r
+ * }\r
+ * </code>\r
+ * </pre>\r
+ * \r
+ * and then pass this class to your instance of java.awt.Graphics2D:\r
+ * \r
+ * <pre>\r
+ * <code>\r
+ * graphics.setRenderingHint(XSLFRenderingHint.IMAGE_RENDERER, new MyImageRendener());\r
+ * </code>\r
+ * </pre>\r
+ * \r
+ * @author Yegor Kozlov\r
+ */\r
+@Beta\r
+public class XSLFImageRenderer {\r
+\r
+       /**\r
+        * Render picture data into the supplied graphics\r
+        * \r
+        * @return true if the picture data was successfully rendered\r
+        */\r
+       public boolean drawImage(Graphics2D graphics, XSLFPictureData data,\r
+                       Rectangle2D anchor) {\r
+               try {\r
+                       BufferedImage img = ImageIO.read(data.getPackagePart().getInputStream());\r
+            double sx = anchor.getWidth()/img.getWidth();\r
+            double sy = anchor.getHeight()/img.getHeight();\r
+            double tx = anchor.getX();\r
+            double ty = anchor.getY();\r
+            AffineTransform at = new AffineTransform(sx, 0, 0, sy, tx, ty) ;\r
+\r
+            graphics.drawRenderedImage(img, at);\r
+\r
+                       return true;\r
+               } catch (Exception e) {\r
+                       return false;\r
+               }\r
+\r
+       }\r
+\r
+    /**\r
+     * Create a buffered image from the supplied package part.\r
+     * This method is called to create texture paints.\r
+     *\r
+     * @return a <code>BufferedImage</code> containing the decoded\r
+     * contents of the input, or <code>null</code>.\r
+     */\r
+    public BufferedImage readImage(PackagePart packagePart) throws IOException {\r
+        return ImageIO.read(packagePart.getInputStream());\r
+    }\r
+}
\ No newline at end of file
index 75cc4d15d005512f5fcff64f4f31485da683934d..8ad48364ce2b4dc936957b8c401026e7bb261ff8 100644 (file)
@@ -22,7 +22,6 @@ package org.apache.poi.xslf.usermodel;
 import org.apache.poi.POIXMLException;\r
 import org.apache.poi.openxml4j.opc.PackagePart;\r
 import org.apache.poi.openxml4j.opc.PackageRelationship;\r
-import org.apache.poi.openxml4j.opc.TargetMode;\r
 import org.apache.poi.util.Beta;\r
 import org.openxmlformats.schemas.drawingml.x2006.main.CTBlip;\r
 import org.openxmlformats.schemas.drawingml.x2006.main.CTBlipFillProperties;\r
@@ -126,8 +125,8 @@ public class XSLFPictureShape extends XSLFSimpleShape {
         XSLFPictureData data = getPictureData();\r
        if(data == null) return;\r
 \r
-        XSLFImageRendener renderer = (XSLFImageRendener)graphics.getRenderingHint(XSLFRenderingHint.IMAGE_RENDERER);\r
-        if(renderer == null) renderer = new XSLFImageRendener();\r
+        XSLFImageRenderer renderer = (XSLFImageRenderer)graphics.getRenderingHint(XSLFRenderingHint.IMAGE_RENDERER);\r
+        if(renderer == null) renderer = new XSLFImageRenderer();\r
 \r
         RenderableShape rShape = new RenderableShape(this);\r
         Rectangle2D anchor = rShape.getAnchor(graphics);\r
index 715530c67c0b25599921b429d61e506d724dec4f..fe68385688ea6ba673c8edeb75b59b7c94129607 100644 (file)
@@ -44,7 +44,7 @@ public class XSLFRenderingHint extends RenderingHints.Key {
     /**\r
      * Use a custom image rendener\r
      *\r
-     * @see XSLFImageRendener\r
+     * @see XSLFImageRenderer\r
      */\r
     public static final XSLFRenderingHint IMAGE_RENDERER = new XSLFRenderingHint(3);\r
 \r
index ec733a1c98780c774f3f3170264ba6144d4abccb..d575e053248f6b1a9a41f154e3237ec10ac8c86e 100644 (file)
@@ -65,7 +65,6 @@ public class SheetDataWriter {
      * Create a writer for the sheet data.\r
      * \r
      * @param  fd the file to write to\r
-     * @return\r
      */\r
     public Writer createWriter(File fd)throws IOException {\r
         return new BufferedWriter(new FileWriter(fd));\r
index 896be63bd06d27ebc8a40d4003f65e3e6a7ea76f..0f8d3d70d05be624d60a4463fb98dfcf4d57bbe8 100644 (file)
@@ -558,12 +558,15 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook, Iterable<X
      * The string MUST NOT begin or end with the single quote (') character.
      * </p>
      *
+     * <p>
+     * See {@link org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)}
+     *      for a safe way to create valid names
+     * </p>
      * @param sheetname  sheetname to set for the sheet.
      * @return Sheet representing the new sheet.
      * @throws IllegalArgumentException if the name is null or invalid
      *  or workbook already contains a sheet with this name
-     * @see {@link org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)}
-     *      for a safe way to create valid names
+     * @see org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)
      */
     public XSSFSheet createSheet(String sheetname) {
         if (sheetname == null) {
@@ -1190,9 +1193,8 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook, Iterable<X
      * @param sheetname  the new sheet name
      * @throws IllegalArgumentException if the name is null or invalid
      *  or workbook already contains a sheet with this name
-     * @see {@link #createSheet(String)}
-     * @see {@link org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)}
-     *      for a safe way to create valid names
+     * @see #createSheet(String)
+     * @see org.apache.poi.ss.util.WorkbookUtil#createSafeSheetName(String nameProposal)
      */
     public void setSheetName(int sheetIndex, String sheetname) {
         validateSheetIndex(sheetIndex);
index 087dfb553d14693522df837c57b5d97633c6a951..273e674ae8502e9510dcfba5ca0e797f29d9dbc2 100644 (file)
@@ -49,7 +49,7 @@ public final class XSSFManualLayout implements ManualLayout {
 \r
        /**\r
         * Create a new SpreadsheetML manual layout.\r
-        * @param layout a Spreadsheet ML layout that should be used as base.\r
+        * @param ctLayout a Spreadsheet ML layout that should be used as base.\r
         */\r
        public XSSFManualLayout(CTLayout ctLayout) {\r
                initLayout(ctLayout);\r
index c7d37d1bc5e204735601acf9ba714113188008eb..6b4423ba8d0ba9a9f34edcf779c3029d4d0e3652 100644 (file)
@@ -505,9 +505,10 @@ public class XWPFDocument extends POIXMLDocument implements Document, IBody {
 
     /**
      * Add a new paragraph at position of the cursor. The cursor must be on the
-     * {@link TokenType#START} tag of an subelement of the documents body. When
-     * this method is done, the cursor passed as parameter points to the
-     * {@link TokenType#END} of the newly inserted paragraph.
+     * {@link org.apache.xmlbeans.XmlCursor.TokenType#START} tag of an subelement
+     * of the documents body. When this method is done, the cursor passed as
+     * parameter points to the {@link org.apache.xmlbeans.XmlCursor.TokenType#END}
+     * of the newly inserted paragraph.
      * 
      * @param cursor
      * @return the {@link XWPFParagraph} object representing the newly inserted
index 89b6ff1590a8b7a16171e29ad051a3f061f46f35..1977f9527fa6d0ec7a9b2e2c8325e86d11cca0f2 100644 (file)
@@ -81,7 +81,7 @@ public class XWPFFootnote implements Iterable<XWPFParagraph>,IBody {
     }
 
     /**
-     * @param position in table array
+     * @param pos in table array
      * @return The table at position pos
      * @see org.apache.poi.xwpf.usermodel.IBody#getTableArray(int)
      */
index 27908901dd6f3c27a8cc21d16b63959d3b31a282..93bc8bfc7be93075dc2158d6391e3e3b12258977 100644 (file)
@@ -132,7 +132,7 @@ public class XWPFFootnotes extends POIXMLDocumentPart {
 
        /**
         * add a footnote to the document
-        * @param footnote
+        * @param note
         * @throws IOException           
         */
        public XWPFFootnote addFootnote(CTFtnEdn note){
index 003f755a0edaca919af89f3b0ddb9dcffec62a19..a45d856145d4f21d78ff001e8c6b21e1fe644d1f 100644 (file)
@@ -165,7 +165,7 @@ public class AbstractExcelUtils
     /**
      * @param mergedRanges
      *            map of sheet merged ranges built with
-     *            {@link #buildMergedRangesMap(HSSFSheet)}
+     *            {@link ExcelToHtmlUtils#buildMergedRangesMap(HSSFSheet)}
      * @return {@link CellRangeAddress} from map if cell with specified row and
      *         column numbers contained in found range, <tt>null</tt> otherwise
      */
index 3a984d6a8f6efe1687ec7d50af011da5573b3fa0..2fb452553de7503cf7777a2326631a6112302e18 100644 (file)
@@ -64,7 +64,7 @@ public class CHPBinTable
      * Constructor used to read a binTable in from a Word document.
      * 
      * @deprecated Use
-     *             {@link #CHPBinTable(byte[],byte[],int,int,TextPieceTable)}
+     *             {@link #CHPBinTable(byte[], byte[], int, int, CharIndexTranslator)}
      *             instead
      */
     public CHPBinTable( byte[] documentStream, byte[] tableStream, int offset,
index 28cd870f4b2db6d5278ea5a4e74e8d77adc2164b..6b141007101f8f5cb2ad9b9ec922fc3483f5149c 100644 (file)
@@ -59,7 +59,7 @@ public final class CHPFormattedDiskPage extends FormattedDiskPage
      * read from a Word file).
      * 
      * @deprecated Use
-     *             {@link #CHPFormattedDiskPage(byte[],int,TextPieceTable)}
+     *             {@link #CHPFormattedDiskPage(byte[], int, CharIndexTranslator)}
      *             instead
      */
     @SuppressWarnings( "unused" )
index 989872d6a8d60c4e35903ace5434ef22e02d552f..d09a2db0ef4d77b9060814598c276c824969ffb8 100644 (file)
@@ -38,9 +38,9 @@ import org.apache.poi.util.POILogger;
  * The {@link FibBase} class, holds the
  *  first 32 bytes.
  * The next part, the fibRgW / FibRgW97, is handled
- *  by {@link FIBShortHandler}.
+ *  by {@link FibRgW97}.
  * The next part, the fibRgLw / The FibRgLw97, is
- *  handled by the {@link FIBLongHandler}.
+ *  handled by the {@link FibRgLw}.
  * Finally, the rest of the fields are handled by
  *  the {@link FIBFieldHandler}.
  *
index 437ec974390b6740c414af29f13a46d887657209..c277a34df997eb8a27f1b9af7108c0ab09d13dea 100644 (file)
@@ -59,7 +59,7 @@ public class PAPBinTable
 
     /**
      * @deprecated Use
-     *             {@link #PAPBinTable(byte[],byte[],byte[],int,int,int,TextPieceTable,boolean)}
+     *             {@link #PAPBinTable(byte[], byte[], byte[], int, int, CharIndexTranslator)}
      *             instead
      */
     @SuppressWarnings( "unused" )
index 6c78f420b1a0777143f7a3e32798b6d223bef80a..f930de3c0f69b4ae760fb2cba70bf2a6e609dfd0 100644 (file)
@@ -69,7 +69,7 @@ public final class PAPFormattedDiskPage extends FormattedDiskPage {
      * Creates a PAPFormattedDiskPage from a 512 byte array
      * 
      * @deprecated Use
-     *             {@link #PAPFormattedDiskPage(byte[],byte[],int,int,TextPieceTable,boolean)}
+     *             {@link #PAPFormattedDiskPage(byte[], byte[], int, CharIndexTranslator)}
      *             instead
      */
     public PAPFormattedDiskPage( byte[] documentStream, byte[] dataStream,
index 0fba191f903faf0eb7a58a215a0d5d1b8230ffb6..0486fa8517c013d62e346cdaa59787439762e209 100644 (file)
@@ -23,7 +23,7 @@ import org.apache.poi.util.LittleEndian;
 /**
  * Section Descriptor (SED)
  * 
- * @see page 186 for details
+ * See page 186 for details.
  */
 @Internal
 public final class SectionDescriptor
index 413c0309521593d0f518756ba47ce63fd116c813..58ad7aefa17a2d676b4d7fbb293827f0b6db54e1 100644 (file)
@@ -298,7 +298,7 @@ public final class Picture
     }
 
     /**
-     * @retrn the vertical aspect ratio for picture provided by user
+     * @return the vertical aspect ratio for picture provided by user
      * @deprecated use more precise {@link #getVerticalScalingFactor()}
      */
     @Deprecated