-
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
package org.apache.poi.contrib.poibrowser;
* data.</p>
*
* @author Rainer Klute (klute@rainer-klute.de) - with portions from Tomcat
- * @version $Id$
- * @since 2002-01-24
*/
public class Codec
{
-
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
package org.apache.poi.contrib.poibrowser;
* <p>Describes the most important (whatever that is) features of a
* {@link POIFSDocument}.</p>
*
- * @author Rainer Klute (klute@rainer-klute.de)
- * @version $Id$
- * @since 2002-02-05
- * *
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
*/
-
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
package org.apache.poi.contrib.poibrowser;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-02-05
*/
public class DocumentDescriptorRenderer extends DefaultTreeCellRenderer
{
-
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
package org.apache.poi.contrib.poibrowser;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-01-22
*/
public class ExtendableTreeCellRenderer implements TreeCellRenderer
{
-
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
package org.apache.poi.contrib.poibrowser;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-01-19
*/
public class POIBrowser extends JFrame
{
-
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
package org.apache.poi.contrib.poibrowser;
* stream containing a {@link PropertySet}.</p>
*
* @author Rainer Klute (klute@rainer-klute.de)
- * @version $Id$
- * @since 2002-02-05
*/
public class PropertySetDescriptor extends DocumentDescriptor
{
-
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
package org.apache.poi.contrib.poibrowser;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-02-05
*/
public class PropertySetDescriptorRenderer extends DocumentDescriptorRenderer
{
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-01-24
*/
public class TreeReaderListener implements POIFSReaderListener
{
-
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
package org.apache.poi.contrib.poibrowser;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-01-25
*/
-public class Util
-{
+public class Util {
/**
* <p>Makes a Swing component inverted by swapping its foreground
* and background colors. Hint: Depending on your needs it might
* also be a good idea to call <tt>c.setOpaque(true)</tt>.</p>
*/
- public static void invert(final JComponent c)
- {
- final Color invBackground = c.getForeground();
- final Color invForeground = c.getBackground();
+ public static void invert(JComponent c) {
+ Color invBackground = c.getForeground();
+ Color invForeground = c.getBackground();
c.setBackground(invBackground);
c.setForeground(invForeground);
}
-
}
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf.examples;
import java.io.ByteArrayInputStream;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2003-09-19
*/
public class CopyCompare
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
package org.apache.poi.hpsf.examples;
import org.apache.poi.poifs.filesystem.DocumentInputStream;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
-
-
/**
* <p>This is a sample application showing how to easily modify properties in
* the summary information and in the document summary information. The
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de">klute@rainer-klute.de</a>
- * @since 2006-02-09
- * @version $Id: TestWrite.java 353637 2005-04-13 16:33:22Z klute $
*/
public class ModifyDocumentSummaryInformation
{
-
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf.examples;
import java.io.FileInputStream;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2003-02-01
*/
public class ReadCustomPropertySets
{
-
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf.examples;
import java.io.FileInputStream;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2003-02-01
*/
public class ReadTitle
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf.examples;
import java.io.ByteArrayInputStream;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2003-09-01
*/
public class WriteAuthorAndTitle
{
-
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf.examples;
import java.io.FileOutputStream;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2003-09-12
*/
public class WriteTitle
{
-/*
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements. See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License. You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
+/* ====================================================================
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+==================================================================== */
+
package org.apache.poi.ddf;
import org.apache.poi.util.HexDump;
/**
* @author Glen Stampoultzis
- * @version $Id$
*/
public class EscherBitmapBlip extends EscherBlipRecord {
public static final short RECORD_ID_JPEG = (short) 0xF018 + 5;
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import org.apache.poi.util.HexDump;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-02-09
*/
public class ClassID
{
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @since 2004-06-20
- * @version $Id$
*/
public class Constants
{
* unmodified) or whether one or more properties have been dropped.</p>
*
* <p>This class is not thread-safe; concurrent access to instances of this
- * class must be syncronized.</p>
+ * class must be synchronized.</p>
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @since 2006-02-09
- * @version $Id$
*/
public class CustomProperties extends HashMap
{
package org.apache.poi.hpsf;
/**
- * <p>This class represents custum properties in the document summary
+ * <p>This class represents custom properties in the document summary
* information stream. The difference to normal properties is that custom
* properties have an optional name. If the name is not <code>null</code> it
* will be maintained in the section's dictionary.</p>
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @since 2006-02-09
- * @version $Id$
*/
public class CustomProperty extends MutableProperty
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import java.util.Iterator;
* @author Drew Varner (Drew.Varner closeTo sc.edu)
* @author robert_flaherty@hyperion.com
* @see SummaryInformation
- * @version $Id$
- * @since 2002-02-09
*/
public class DocumentSummaryInformation extends SpecialPropertySet
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
/**
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-02-09
*/
public class HPSFException extends Exception
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import java.io.PrintStream;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-02-09
*/
public class HPSFRuntimeException extends RuntimeException
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
/**
* thrown.</p>
*
* @author Drew Varner(Drew.Varner atDomain sc.edu)
- * @version $Id$
- * @since 2002-05-26
*/
public class IllegalPropertySetDataException extends HPSFRuntimeException
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import org.apache.poi.util.HexDump;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @since 2004-06-21
- * @version $Id$
*/
public class IllegalVariantTypeException extends VariantTypeException
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
/**
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-02-09
*/
public class MarkUnsupportedException extends HPSFException
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
/**
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id: NoSingleSectionException.java 353545 2004-04-09 13:05:39Z glens $
- * @since 2006-02-08
*/
public class MissingSectionException extends HPSFRuntimeException
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import java.io.IOException;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @since 2003-08-03
- * @version $Id$
*/
public class MutableProperty extends Property
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import java.io.ByteArrayInputStream;
import org.apache.poi.util.LittleEndian;
import org.apache.poi.util.LittleEndianConsts;
-
-
/**
* <p>Adds writing support to the {@link PropertySet} class.</p>
*
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2003-02-19
*/
public class MutablePropertySet extends PropertySet
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import java.io.ByteArrayOutputStream;
*
* <p>Please be aware that this class' functionality will be merged into the
* {@link Section} class at a later time, so the API will change.</p>
- *
- * @version $Id$
- * @since 2002-02-20
*/
public class MutableSection extends Section
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
/**
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-09-03
*/
public class NoFormatIDException extends HPSFRuntimeException
{
-
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
/**
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-02-09
*/
public class NoPropertySetStreamException extends HPSFException
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
/**
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-02-09
*/
public class NoSingleSectionException extends HPSFRuntimeException
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import java.io.UnsupportedEncodingException;
* @author Drew Varner (Drew.Varner InAndAround sc.edu)
* @see Section
* @see Variant
- * @version $Id$
- * @since 2002-02-09
*/
public class Property
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import java.io.IOException;
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
* @author Drew Varner (Drew.Varner hanginIn sc.edu)
- * @version $Id$
- * @since 2002-02-09
*/
public class PropertySet
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import java.io.InputStream;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-02-09
*/
public class PropertySetFactory
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
/**
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @since 2003-08-08
- * @version $Id$
*/
public class ReadingNotSupportedException
extends UnsupportedVariantTypeException
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import java.io.UnsupportedEncodingException;
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
* @author Drew Varner (Drew.Varner allUpIn sc.edu)
- * @version $Id$
- * @since 2002-02-09
*/
public class Section
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import java.io.IOException;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-02-09
*/
public abstract class SpecialPropertySet extends MutablePropertySet
{
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
* @see DocumentSummaryInformation
- * @version $Id$
- * @since 2002-02-09
*/
public class SummaryInformation extends SpecialPropertySet
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import org.apache.poi.util.LittleEndian;
*
* @author Drew Varner (Drew.Varner inOrAround sc.edu)
* @see SummaryInformation#getThumbnail()
- * @version $Id$
- * @since 2002-04-29
*/
public class Thumbnail
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import java.io.IOException;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2003-02-20
*/
public class TypeWriter
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
/**
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-02-09
*/
public class UnexpectedPropertySetTypeException extends HPSFException
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import org.apache.poi.util.HexDump;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @since 2003-08-05
- * @version $Id$
*/
public abstract class UnsupportedVariantTypeException
extends VariantTypeException
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import java.io.IOException;
* <p>Provides various static utility methods.</p>
*
* @author Rainer Klute (klute@rainer-klute.de)
- * @version $Id$
- * @since 2002-02-09
*/
public class Util
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
import java.util.Collections;
* <strong>[S]</strong> - may appear in a Safe Array.</p>
*
* @author Rainer Klute (klute@rainer-klute.de)
- * @version $Id$
- * @since 2002-02-09
*/
public class Variant
{
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @since 2003-08-08
- * @version $Id$
*/
public class VariantSupport extends Variant
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
/**
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @since 2004-06-21
- * @version $Id$
*/
public abstract class VariantTypeException extends HPSFException
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf;
/**
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @since 2003-08-08
- * @version $Id$
*/
public class WritingNotSupportedException
extends UnsupportedVariantTypeException
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf.wellknown;
import java.util.Collections;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @version $Id$
- * @since 2002-02-09
*/
-public class PropertyIDMap extends HashMap
-{
+public class PropertyIDMap extends HashMap {
/*
* The following definitions are for property IDs in the first
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf.wellknown;
import java.util.HashMap;
* property IDs in sections with the specified section format ID.</p>
*
* @author Rainer Klute (klute@rainer-klute.de)
- * @version $Id$
- * @since 2002-02-09
*/
-public class SectionIDMap extends HashMap
-{
+public class SectionIDMap extends HashMap {
/**
* <p>The SummaryInformation's section's format ID.</p>
* Utility classes for dealing with arrays.
*
* @author Glen Stampoultzis
- * @version $Id$
*/
public class ArrayUtil
{
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @since 2006-02-11
- * @version $Id$
*/
-public class AllDataFilesTester
-{
+public class AllDataFilesTester {
/**
* <p>Interface specifying how to run a test on a single file.</p>
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @since 2006-02-11
- * @version $Id$
*/
public interface TestTask
{
-
/* ====================================================================
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
package org.apache.poi.hpsf.basic;
import org.apache.poi.poifs.filesystem.POIFSDocumentPath;
-
-
/**
* <p>A POI file just for testing.</p>
*
* @author Rainer Klute (klute@rainer-klute.de)
- * @since 2002-07-20
- * @version $Id$
*/
public class POIFile
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
package org.apache.poi.hpsf.basic;
import org.apache.poi.hpsf.SummaryInformation;
import org.apache.poi.hpsf.wellknown.SectionIDMap;
-
-
/**
* <p>Tests the basic HPSF functionality.</p>
*
* @author Rainer Klute (klute@rainer-klute.de)
- * @since 2002-07-20
- * @version $Id$
*/
public class TestBasic extends TestCase
{
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
+
package org.apache.poi.hpsf.basic;
import java.io.ByteArrayInputStream;
*
* @author Rainer Klute <a
* href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de></a>
- * @since 2003-07-25
- * @version $Id$
*/
public class TestEmptyProperties extends TestCase
{
* This class tests reading and writing of meta data. No actual document is created. All information
* is stored in a virtal document in a ByteArrayOutputStream
* @author Matthias G\u00fcnter
- * @since 2006-03-03
- * @version $Id: TestEmptyProperties.java 353563 2004-06-22 16:16:33Z klute $
*/
public class TestMetaDataIPI extends TestCase{
DocumentSummaryInformation dsi=null;
SummaryInformation si=null;
- /**
- * Standard constructor
- * @param s
- */
- public TestMetaDataIPI(String s ){
- super(s);
- }
+
/**
* Setup is used to get the document ready. Gets the DocumentSummaryInformation and the
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
package org.apache.poi.hpsf.basic;
import org.apache.poi.hpsf.PropertySetFactory;
-
-
/**
* <p>Tests some HPSF functionality by reading all property sets from all files
* in the "data" directory. If you want to ensure HPSF can deal with a certain
* OLE2 file, just add it to the "data" directory and run this test case.</p>
*
* @author Rainer Klute (klute@rainer-klute.de)
- * @since 2008-02-08
- * @version $Id: TestBasic.java 489730 2006-12-22 19:18:16Z bayard $
*/
-public class TestReadAllFiles extends TestCase
-{
-
- /**
- * <p>Test case constructor.</p>
- *
- * @param name The test case's name.
- */
- public TestReadAllFiles(final String name)
- {
- super(name);
- }
-
-
+public class TestReadAllFiles extends TestCase {
/**
* <p>This test methods reads all property set streams from all POI
fail(s);
}
}
-
-
-
- /**
- * <p>Runs the test cases stand-alone.</p>
- *
- * @param args Command-line arguments (ignored)
- *
- * @exception Throwable if any sort of exception or error occurs
- */
- public static void main(final String[] args) throws Throwable
- {
- System.setProperty("HPSF.testdata.path",
- "./src/testcases/org/apache/poi/hpsf/data");
- junit.textui.TestRunner.run(TestReadAllFiles.class);
- }
-
}
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
package org.apache.poi.hpsf.basic;
import org.apache.poi.hpsf.Section;
import org.apache.poi.hpsf.SummaryInformation;
-
-
/**
* <p>Tests whether Unicode string can be read from a
* DocumentSummaryInformation.</p>
*
* @author Rainer Klute (klute@rainer-klute.de)
- * @since 2002-12-09
- * @version $Id$
*/
-public class TestUnicode extends TestCase
-{
+public class TestUnicode extends TestCase {
static final String POI_FS = "TestUnicode.xls";
static final String[] POI_FILES = new String[]
POIFile[] poiFiles;
-
- /**
- * <p>Constructor</p>
- *
- * @param name the test case's name
- */
- public TestUnicode(final String name)
- {
- super(name);
- }
-
-
-
/**
* <p>Read a the test file from the "data" directory.</p>
*
* @exception FileNotFoundException if the file to be read does not exist.
* @exception IOException if any other I/O exception occurs
*/
- protected void setUp() throws FileNotFoundException, IOException
- {
+ protected void setUp() {
final File dataDir =
new File(System.getProperty("HPSF.testdata.path"));
data = new File(dataDir, POI_FS);
Assert.assertEquals(s.getProperty(5),
"Petrovitsch, Wilhelm");
}
-
-
-
- /**
- * <p>Runs the test cases stand-alone.</p>
- *
- * @param args Command-line arguments.
- */
- public static void main(final String[] args)
- {
- System.setProperty("HPSF.testdata.path",
- "./src/testcases/org/apache/poi/hpsf/data");
- junit.textui.TestRunner.run(TestUnicode.class);
- }
-
}
import org.apache.poi.util.LittleEndian;
import org.apache.poi.util.TempFile;
-
-
/**
* <p>Tests HPSF's writing functionality.</p>
*
* @author Rainer Klute (klute@rainer-klute.de)
- * @since 2003-02-07
- * @version $Id$
*/
public class TestWrite extends TestCase
{
POIFile[] poiFiles;
-
- /**
- * <p>Constructor</p>
- *
- * @param name the test case's name
- */
- public TestWrite(final String name)
- {
- super(name);
- }
-
-
-
/**
* @see TestCase#setUp()
*/
final Charset charSet = Charset.forName(charSetName);
return charSet.newEncoder().canEncode('\u00e4');
}
-
-
-
- /**
- * <p>Runs the test cases stand-alone.</p>
- *
- * @param args The command-line parameters.
- * @throws Throwable if anything goes wrong.
- */
- public static void main(final String[] args) throws Throwable
- {
- System.setProperty("HPSF.testdata.path",
- "./src/testcases/org/apache/poi/hpsf/data");
- junit.textui.TestRunner.run(TestWrite.class);
- }
-
}
import org.apache.poi.poifs.filesystem.DocumentInputStream;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
-
-
/**
* <p>Tests HPSF's high-level writing functionality for the well-known property
* set "SummaryInformation" and "DocumentSummaryInformation".</p>
*
* @author Rainer Klute
* <a href="mailto:klute@rainer-klute.de">klute@rainer-klute.de</a>
- * @since 2006-02-01
- * @version $Id$
*/
-public class TestWriteWellKnown extends TestCase
-{
+public class TestWriteWellKnown extends TestCase {
private static final String POI_FS = "TestWriteWellKnown.doc";
- /**
- * <p>Constructor</p>
- *
- * @param name the test case's name
- */
- public TestWriteWellKnown(final String name)
- {
- super(name);
- }
-
-
/**
* @see TestCase#setUp()
assertEquals(1, cps.size());
assertFalse(cps.isPure());
}
-
-
-
- /**
- * <p>Runs the test cases stand-alone.</p>
- *
- * @param args The command-line parameters.
- * @throws Throwable if anything goes wrong.
- */
- public static void main(final String[] args) throws Throwable
- {
- System.setProperty("HPSF.testdata.path",
- "./src/testcases/org/apache/poi/hpsf/data");
- junit.textui.TestRunner.run(TestWriteWellKnown.class);
- }
-
}
See the License for the specific language governing permissions and
limitations under the License.
==================================================================== */
-
package org.apache.poi.hpsf.basic;
* <p>Static utility methods needed by the HPSF test cases.</p>
*
* @author Rainer Klute (klute@rainer-klute.de)
- * @since 2002-07-20
- * @version $Id$
*/
-public class Util
-{
+final class Util {
/**
* <p>Reads bytes from an input stream and writes them to an
System.out.println("Current directory: " +
System.getProperty("user.dir"));
}
-
-
-
}