From dc92ea37256a43bc83dbb894f8eff81cbdb24995 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Fri, 1 Feb 2008 15:20:55 +0000 Subject: [PATCH] Make a start on the hyperlink record support - not finished yet though, so not enabled git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@617516 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/hssf/record/HyperlinkRecord.java | 350 ++++++++++++++++++ .../poi/hssf/record/TestHyperlinkRecord.java | 84 +++++ 2 files changed, 434 insertions(+) create mode 100644 src/java/org/apache/poi/hssf/record/HyperlinkRecord.java create mode 100644 src/testcases/org/apache/poi/hssf/record/TestHyperlinkRecord.java diff --git a/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java b/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java new file mode 100644 index 000000000..76f9f531d --- /dev/null +++ b/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java @@ -0,0 +1,350 @@ +/* ==================================================================== + Copyright 2002-2004 Apache Software Foundation + + Licensed 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. + ==================================================================== */ + +/* + * HyperlinkRecord + * + * Created on February 20th, 2005, 16:00 PM + */ +package org.apache.poi.hssf.record; + +import java.io.IOException; +import java.net.MalformedURLException; +import java.net.URL; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.apache.poi.util.HexDump; +import org.apache.poi.util.LittleEndian; +import org.apache.poi.util.StringUtil; + +/**The HyperlinkRecord wraps an HLINK-record from the Excel-97 format + * + * @version 20-feb-2005 + * @author Mark Hissink Muller