poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1563653 - /poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFEventBasedExcelExtractor.java
Date Sun, 02 Feb 2014 16:28:05 GMT
Author: nick
Date: Sun Feb  2 16:28:04 2014
New Revision: 1563653

URL: http://svn.apache.org/r1563653
Log:
Fix whitespace

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFEventBasedExcelExtractor.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFEventBasedExcelExtractor.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFEventBasedExcelExtractor.java?rev=1563653&r1=1563652&r2=1563653&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFEventBasedExcelExtractor.java
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFEventBasedExcelExtractor.java
Sun Feb  2 16:28:04 2014
@@ -60,99 +60,99 @@ public class XSSFEventBasedExcelExtracto
     private boolean formulasNotResults = false;
     private boolean includeTextBoxes = true;
 
-	public XSSFEventBasedExcelExtractor(String path) throws XmlException, OpenXML4JException,
IOException {
-		this(OPCPackage.open(path));
-	}
-	public XSSFEventBasedExcelExtractor(OPCPackage container) throws XmlException, OpenXML4JException,
IOException {
-		super(null);
-		this.container = container;
-		
-		properties = new POIXMLProperties(container);
-	}
+    public XSSFEventBasedExcelExtractor(String path) throws XmlException, OpenXML4JException,
IOException {
+        this(OPCPackage.open(path));
+    }
+    public XSSFEventBasedExcelExtractor(OPCPackage container) throws XmlException, OpenXML4JException,
IOException {
+        super(null);
+        this.container = container;
 
-	public static void main(String[] args) throws Exception {
-		if(args.length < 1) {
-			System.err.println("Use:");
-			System.err.println("  XSSFEventBasedExcelExtractor <filename.xlsx>");
-			System.exit(1);
-		}
-		POIXMLTextExtractor extractor =
-			new XSSFEventBasedExcelExtractor(args[0]);
-		System.out.println(extractor.getText());
-	}
+        properties = new POIXMLProperties(container);
+    }
 
-	/**
-	 * Should sheet names be included? Default is true
-	 */
-	public void setIncludeSheetNames(boolean includeSheetNames) {
-		this.includeSheetNames = includeSheetNames;
-	}
-	/**
-	 * Should we return the formula itself, and not
-	 *  the result it produces? Default is false
-	 */
-	public void setFormulasNotResults(boolean formulasNotResults) {
-		this.formulasNotResults = formulasNotResults;
-	}
+    public static void main(String[] args) throws Exception {
+        if(args.length < 1) {
+            System.err.println("Use:");
+            System.err.println("  XSSFEventBasedExcelExtractor <filename.xlsx>");
+            System.exit(1);
+        }
+        POIXMLTextExtractor extractor =
+            new XSSFEventBasedExcelExtractor(args[0]);
+        System.out.println(extractor.getText());
+    }
+
+    /**
+     * Should sheet names be included? Default is true
+     */
+    public void setIncludeSheetNames(boolean includeSheetNames) {
+        this.includeSheetNames = includeSheetNames;
+    }
+    /**
+     * Should we return the formula itself, and not
+     *  the result it produces? Default is false
+     */
+    public void setFormulasNotResults(boolean formulasNotResults) {
+        this.formulasNotResults = formulasNotResults;
+    }
 
-	/**
+    /**
      * Should text from textboxes be included? Default is true
      */
-	public void setIncludeTextBoxes(boolean includeTextBoxes) {
-	    this.includeTextBoxes = includeTextBoxes;
-	}
-	
-	/**
-	 * Would control the inclusion of cell comments from the document,
-	 *  if we supported it
-	 */
-	public void setIncludeCellComments(boolean includeCellComments) {
-	    throw new IllegalStateException("Comment extraction not supported in streaming mode,
please use XSSFExcelExtractor");
+    public void setIncludeTextBoxes(boolean includeTextBoxes) {
+        this.includeTextBoxes = includeTextBoxes;
     }
-	
+
+    /**
+     * Would control the inclusion of cell comments from the document,
+     *  if we supported it
+     */
+    public void setIncludeCellComments(boolean includeCellComments) {
+        throw new IllegalStateException("Comment extraction not supported in streaming mode,
please use XSSFExcelExtractor");
+    }
+
     public void setLocale(Locale locale) {
-	   this.locale = locale;
-	}
-	
-	/**
-	 * Returns the opened OPCPackage container.
-	 */
-	@Override
-	public OPCPackage getPackage() {
-	   return container;
-	}
-	
-   /**
-    * Returns the core document properties
-    */
-   @Override
-   public CoreProperties getCoreProperties() {
-       return properties.getCoreProperties();
-   }
-   /**
-    * Returns the extended document properties
-    */
-   @Override
-   public ExtendedProperties getExtendedProperties() {
-      return properties.getExtendedProperties();
-   }
-   /**
-    * Returns the custom document properties
-    */
-   @Override
-   public CustomProperties getCustomProperties() {
-      return properties.getCustomProperties();
-   }
-   
-   /**
-    * Processes the given sheet
-    */
-   public void processSheet(
-           SheetContentsHandler sheetContentsExtractor,
-           StylesTable styles,
-           ReadOnlySharedStringsTable strings,
-           InputStream sheetInputStream)
-           throws IOException, SAXException {
+        this.locale = locale;
+    }
+
+    /**
+     * Returns the opened OPCPackage container.
+     */
+    @Override
+    public OPCPackage getPackage() {
+        return container;
+    }
+
+    /**
+     * Returns the core document properties
+     */
+    @Override
+    public CoreProperties getCoreProperties() {
+        return properties.getCoreProperties();
+    }
+    /**
+     * Returns the extended document properties
+     */
+    @Override
+    public ExtendedProperties getExtendedProperties() {
+        return properties.getExtendedProperties();
+    }
+    /**
+     * Returns the custom document properties
+     */
+    @Override
+    public CustomProperties getCustomProperties() {
+        return properties.getCustomProperties();
+    }
+
+    /**
+     * Processes the given sheet
+     */
+    public void processSheet(
+            SheetContentsHandler sheetContentsExtractor,
+            StylesTable styles,
+            ReadOnlySharedStringsTable strings,
+            InputStream sheetInputStream)
+            throws IOException, SAXException {
 
        DataFormatter formatter;
        if(locale == null) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message