You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ju...@apache.org on 2008/08/05 12:51:26 UTC
svn commit: r682665 [8/21] - in /incubator/pdfbox/trunk/src: org/pdfbox/
org/pdfbox/ant/ org/pdfbox/cos/ org/pdfbox/encoding/ org/pdfbox/encryption/
org/pdfbox/examples/ org/pdfbox/examples/fdf/ org/pdfbox/examples/pdmodel/
org/pdfbox/examples/persiste...
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDObjectStream.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDObjectStream.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDObjectStream.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDObjectStream.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common;
@@ -41,10 +41,10 @@
{
super( str );
}
-
+
/**
* This will create a new PDStream object.
- *
+ *
* @param document The document that the stream will be part of.
* @return A new stream object.
*/
@@ -55,61 +55,61 @@
strm.getStream().setName( "Type", "ObjStm" );
return strm;
}
-
+
/**
* Get the type of this object, should always return "ObjStm".
- *
+ *
* @return The type of this object.
*/
public String getType()
{
return getStream().getNameAsString( "Type" );
}
-
+
/**
* Get the number of compressed object.
- *
+ *
* @return The number of compressed objects.
*/
public int getNumberOfObjects()
{
return getStream().getInt( "N", 0 );
}
-
+
/**
* Set the number of objects.
- *
+ *
* @param n The new number of objects.
*/
public void setNumberOfObjects( int n )
{
getStream().setInt( "N", n );
}
-
+
/**
* The byte offset (in the decoded stream) of the first compressed object.
- *
+ *
* @return The byte offset to the first object.
*/
public int getFirstByteOffset()
{
return getStream().getInt( "First", 0 );
}
-
+
/**
* The byte offset (in the decoded stream) of the first compressed object.
- *
+ *
* @param n The byte offset to the first object.
*/
public void setFirstByteOffset( int n )
{
getStream().setInt( "First", n );
}
-
+
/**
- * A reference to an object stream, of which the current object stream is
+ * A reference to an object stream, of which the current object stream is
* considered an extension.
- *
+ *
* @return The object that this stream is an extension.
*/
public PDObjectStream getExtends()
@@ -121,17 +121,17 @@
retval = new PDObjectStream( stream );
}
return retval;
-
+
}
-
+
/**
* A reference to an object stream, of which the current object stream is
* considered an extension.
- *
+ *
* @param stream The object stream extension.
*/
public void setExtends( PDObjectStream stream )
{
getStream().setItem( "Extends", stream );
}
-}
\ No newline at end of file
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDObjectStream.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDRange.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDRange.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDRange.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDRange.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common;
@@ -129,4 +129,4 @@
{
rangeArray.set( startingIndex*2+1, new COSFloat( max ) );
}
-}
\ No newline at end of file
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDRange.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDRectangle.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDRectangle.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDRectangle.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDRectangle.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common;
@@ -48,7 +48,7 @@
rectArray.add( new COSFloat( 0.0f ) );
rectArray.add( new COSFloat( 0.0f ) );
}
-
+
/**
* Constructor.
*
@@ -87,7 +87,7 @@
{
rectArray = array;
}
-
+
/**
* Method to determine if the x/y point is inside this rectangle.
* @param x The x-coordinate to test.
@@ -242,21 +242,21 @@
{
return new Dimension( (int)getWidth(), (int)getHeight() );
}
-
+
/**
* This will move the rectangle the given relative amount.
- *
+ *
* @param horizontalAmount positive values will move rectangle to the right, negative's to the left.
* @param verticalAmount positive values will move the rectangle up, negative's down.
*/
- public void move(float horizontalAmount, float verticalAmount)
+ public void move(float horizontalAmount, float verticalAmount)
{
setUpperRightX(getUpperRightX() + horizontalAmount);
setLowerLeftX(getLowerLeftX() + horizontalAmount);
setUpperRightY(getUpperRightY() + verticalAmount);
setLowerLeftY(getLowerLeftY() + verticalAmount);
}
-
+
/**
* Convert this standard java object to a COS object.
*
@@ -278,4 +278,4 @@
return "[" + getLowerLeftX() + "," + getLowerLeftY() + "," +
getUpperRightX() + "," + getUpperRightY() +"]";
}
-}
\ No newline at end of file
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDRectangle.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDStream.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDStream.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDStream.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDStream.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common;
@@ -49,7 +49,7 @@
public class PDStream implements COSObjectable
{
private COSStream stream;
-
+
/**
* This will create a new PDStream object.
*/
@@ -57,17 +57,17 @@
{
//should only be called by PDMemoryStream
}
-
+
/**
* This will create a new PDStream object.
- *
+ *
* @param document The document that the stream will be part of.
*/
public PDStream( PDDocument document )
{
stream = new COSStream( document.getDocument().getScratchFile() );
}
-
+
/**
* Constructor.
*
@@ -77,7 +77,7 @@
{
stream = str;
}
-
+
/**
* Constructor. Reads all data from the input stream and embeds it into the
* document, this will close the InputStream.
@@ -90,7 +90,7 @@
{
this( doc, str, false );
}
-
+
/**
* Constructor. Reads all data from the input stream and embeds it into the
* document, this will close the InputStream.
@@ -133,7 +133,7 @@
}
}
}
-
+
/**
* If there are not compression filters on the current stream then this
* will add a compression filter, flate compression for example.
@@ -148,7 +148,7 @@
setFilters( filters );
}
}
-
+
/**
* Create a pd stream from either a regular COSStream on a COSArray of cos streams.
* @param base Either a COSStream or COSArray.
@@ -186,35 +186,35 @@
{
return stream;
}
-
+
/**
* This will get a stream that can be written to.
- *
+ *
* @return An output stream to write data to.
- *
+ *
* @throws IOException If an IO error occurs during writing.
*/
public OutputStream createOutputStream() throws IOException
{
return stream.createUnfilteredStream();
}
-
+
/**
* This will get a stream that can be read from.
- *
+ *
* @return An input stream that can be read from.
- *
+ *
* @throws IOException If an IO error occurs during reading.
*/
public InputStream createInputStream() throws IOException
{
return stream.getUnfilteredStream();
}
-
+
/**
* This will get a stream with some filters applied but not others. This is useful
* when doing images, ie filters = [flate,dct], we want to remove flate but leave dct
- *
+ *
* @param stopFilters A list of filters to stop decoding at.
* @return A stream with decoded data.
* @throws IOException If there is an error processing the stream.
@@ -244,7 +244,7 @@
}
return is;
}
-
+
/**
* Get the cos stream associated with this object.
*
@@ -254,18 +254,18 @@
{
return stream;
}
-
+
/**
- * This will get the length of the filtered/compressed stream. This is readonly in the
+ * This will get the length of the filtered/compressed stream. This is readonly in the
* PD Model and will be managed by this class.
- *
+ *
* @return The length of the filtered stream.
*/
public int getLength()
{
return stream.getInt( "Length", 0 );
}
-
+
/**
* This will get the list of filters that are associated with this stream. Or
* null if there are none.
@@ -286,10 +286,10 @@
}
return retval;
}
-
+
/**
* This will set the filters that are part of this stream.
- *
+ *
* @param filters The filters that are part of this stream.
*/
public void setFilters( List filters )
@@ -297,19 +297,19 @@
COSBase obj = COSArrayList.convertStringListToCOSNameCOSArray( filters );
stream.setItem( "Filter", obj );
}
-
+
/**
- * Get the list of decode parameters. Each entry in the list will refer to
+ * Get the list of decode parameters. Each entry in the list will refer to
* an entry in the filters list.
- *
+ *
* @return The list of decode parameters.
- *
+ *
* @throws IOException if there is an error retrieving the parameters.
*/
public List getDecodeParams() throws IOException
{
List retval = null;
-
+
COSBase dp = stream.getDictionaryObject( "DecodeParms" );
if( dp == null )
{
@@ -327,19 +327,19 @@
List actuals = new ArrayList();
for( int i=0; i<array.size(); i++ )
{
- actuals.add(
- COSDictionaryMap.convertBasicTypesToMap(
+ actuals.add(
+ COSDictionaryMap.convertBasicTypesToMap(
(COSDictionary)array.getObject( i ) ) );
}
retval = new COSArrayList(actuals, array);
}
-
+
return retval;
}
-
+
/**
* This will set the list of decode params.
- *
+ *
* @param decodeParams The list of decode params.
*/
public void setDecodeParams( List decodeParams )
@@ -347,13 +347,13 @@
stream.setItem(
"DecodeParams", COSArrayList.converterToCOSArray( decodeParams ) );
}
-
+
/**
* This will get the file specification for this stream. This is only
* required for external files.
- *
+ *
* @return The file specification.
- *
+ *
* @throws IOException If there is an error creating the file spec.
*/
public PDFileSpecification getFile() throws IOException
@@ -362,7 +362,7 @@
PDFileSpecification retval = PDFileSpecification.createFS( f );
return retval;
}
-
+
/**
* Set the file specification.
* @param f The file specification.
@@ -371,7 +371,7 @@
{
stream.setItem( "F", f );
}
-
+
/**
* This will get the list of filters that are associated with this stream. Or
* null if there are none.
@@ -392,10 +392,10 @@
}
return retval;
}
-
+
/**
* This will set the filters that are part of this stream.
- *
+ *
* @param filters The filters that are part of this stream.
*/
public void setFileFilters( List filters )
@@ -403,19 +403,19 @@
COSBase obj = COSArrayList.convertStringListToCOSNameCOSArray( filters );
stream.setItem( "FFilter", obj );
}
-
+
/**
- * Get the list of decode parameters. Each entry in the list will refer to
+ * Get the list of decode parameters. Each entry in the list will refer to
* an entry in the filters list.
- *
+ *
* @return The list of decode parameters.
- *
+ *
* @throws IOException if there is an error retrieving the parameters.
*/
public List getFileDecodeParams() throws IOException
{
List retval = null;
-
+
COSBase dp = stream.getDictionaryObject( "FDecodeParms" );
if( dp instanceof COSDictionary )
{
@@ -428,19 +428,19 @@
List actuals = new ArrayList();
for( int i=0; i<array.size(); i++ )
{
- actuals.add(
- COSDictionaryMap.convertBasicTypesToMap(
+ actuals.add(
+ COSDictionaryMap.convertBasicTypesToMap(
(COSDictionary)array.getObject( i ) ) );
}
retval = new COSArrayList(actuals, array);
}
-
+
return retval;
}
-
+
/**
* This will set the list of decode params.
- *
+ *
* @param decodeParams The list of decode params.
*/
public void setFileDecodeParams( List decodeParams )
@@ -448,10 +448,10 @@
stream.setItem(
"FDecodeParams", COSArrayList.converterToCOSArray( decodeParams ) );
}
-
+
/**
- * This will copy the stream into a byte array.
- *
+ * This will copy the stream into a byte array.
+ *
* @return The byte array of the filteredStream
* @throws IOException When getFilteredStream did not work
*/
@@ -478,27 +478,27 @@
}
return output.toByteArray();
}
-
+
/**
* A convenience method to get this stream as a string. Uses
- * the default system encoding.
- *
+ * the default system encoding.
+ *
* @return a String representation of this (input) stream, with the
* platform default encoding.
- *
- * @throws IOException if there is an error while converting the stream
+ *
+ * @throws IOException if there is an error while converting the stream
* to a string.
*/
- public String getInputStreamAsString() throws IOException
+ public String getInputStreamAsString() throws IOException
{
byte[] bStream = getByteArray();
return new String(bStream);
}
-
+
/**
- * Get the metadata that is part of the document catalog. This will
+ * Get the metadata that is part of the document catalog. This will
* return null if there is no meta data for this object.
- *
+ *
* @return The metadata for this object.
*/
public PDMetadata getMetadata()
@@ -511,14 +511,14 @@
}
return retval;
}
-
+
/**
* Set the metadata for this object. This can be null.
- *
+ *
* @param meta The meta data for this object.
*/
public void setMetadata( PDMetadata meta )
{
stream.setItem( "Metadata", meta );
}
-}
\ No newline at end of file
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDStream.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDTextStream.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDTextStream.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDTextStream.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDTextStream.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common;
@@ -163,4 +163,4 @@
}
return retval;
}
-}
\ No newline at end of file
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/PDTextStream.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDComplexFileSpecification.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDComplexFileSpecification.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDComplexFileSpecification.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDComplexFileSpecification.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common.filespecification;
@@ -88,7 +88,7 @@
{
fs.setString( "F", file );
}
-
+
/**
* This will get the name representing a Dos file.
*
@@ -108,7 +108,7 @@
{
fs.setString( "DOS", file );
}
-
+
/**
* This will get the name representing a Mac file.
*
@@ -128,7 +128,7 @@
{
fs.setString( "Mac", file );
}
-
+
/**
* This will get the name representing a Unix file.
*
@@ -148,31 +148,31 @@
{
fs.setString( "Unix", file );
}
-
+
/**
* Tell if the underlying file is volatile and should not be cached by the
* reader application. Default: false
- *
+ *
* @param fileIsVolatile The new value for the volatility of the file.
*/
public void setVolatile( boolean fileIsVolatile )
{
fs.setBoolean( "V", fileIsVolatile );
}
-
+
/**
* Get if the file is volatile. Default: false
- *
+ *
* @return True if the file is volatile attribute is set.
*/
public boolean isVolatile()
{
return fs.getBoolean( "V", false );
}
-
+
/**
* Get the embedded file.
- *
+ *
* @return The embedded file for this file spec.
*/
public PDEmbeddedFile getEmbeddedFile()
@@ -185,10 +185,10 @@
}
return file;
}
-
+
/**
* Set the embedded file for this spec.
- *
+ *
* @param file The file to be embedded.
*/
public void setEmbeddedFile( PDEmbeddedFile file )
@@ -204,10 +204,10 @@
ef.setItem( "F", file );
}
}
-
+
/**
* Get the embedded dos file.
- *
+ *
* @return The embedded file for this file spec.
*/
public PDEmbeddedFile getEmbeddedFileDos()
@@ -220,10 +220,10 @@
}
return file;
}
-
+
/**
* Set the embedded dos file for this spec.
- *
+ *
* @param file The dos file to be embedded.
*/
public void setEmbeddedFileDos( PDEmbeddedFile file )
@@ -239,10 +239,10 @@
ef.setItem( "DOS", file );
}
}
-
+
/**
* Get the embedded Mac file.
- *
+ *
* @return The embedded file for this file spec.
*/
public PDEmbeddedFile getEmbeddedFileMac()
@@ -255,10 +255,10 @@
}
return file;
}
-
+
/**
* Set the embedded Mac file for this spec.
- *
+ *
* @param file The Mac file to be embedded.
*/
public void setEmbeddedFileMac( PDEmbeddedFile file )
@@ -274,10 +274,10 @@
ef.setItem( "Mac", file );
}
}
-
+
/**
* Get the embedded Unix file.
- *
+ *
* @return The embedded file for this file spec.
*/
public PDEmbeddedFile getEmbeddedFileUnix()
@@ -290,10 +290,10 @@
}
return file;
}
-
+
/**
* Set the embedded Unix file for this spec.
- *
+ *
* @param file The Unix file to be embedded.
*/
public void setEmbeddedFileUnix( PDEmbeddedFile file )
@@ -309,4 +309,4 @@
ef.setItem( "Unix", file );
}
}
-}
\ No newline at end of file
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDComplexFileSpecification.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDEmbeddedFile.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDEmbeddedFile.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDEmbeddedFile.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDEmbeddedFile.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common.filespecification;
@@ -36,16 +36,16 @@
/**
* Constructor.
- *
+ *
* @param document {@inheritDoc}
*/
public PDEmbeddedFile( PDDocument document )
{
super( document );
getStream().setName( "Type", "EmbeddedFile" );
-
+
}
-
+
/**
* Constructor.
*
@@ -55,13 +55,13 @@
{
super( str );
}
-
+
/**
* Constructor.
- *
+ *
* @param doc {@inheritDoc}
* @param str {@inheritDoc}
- *
+ *
* @throws IOException {@inheritDoc}
*/
public PDEmbeddedFile( PDDocument doc, InputStream str ) throws IOException
@@ -69,14 +69,14 @@
super( doc, str );
getStream().setName( "Type", "EmbeddedFile" );
}
-
+
/**
* Constructor.
- *
+ *
* @param doc {@inheritDoc}
* @param str {@inheritDoc}
* @param filtered {@inheritDoc}
- *
+ *
* @throws IOException {@inheritDoc}
*/
public PDEmbeddedFile( PDDocument doc, InputStream str, boolean filtered ) throws IOException
@@ -84,50 +84,50 @@
super( doc, str, filtered );
getStream().setName( "Type", "EmbeddedFile" );
}
-
+
/**
* Set the subtype for this embedded file. This should be a mime type value. Optional.
- *
+ *
* @param mimeType The mimeType for the file.
*/
public void setSubtype( String mimeType )
{
getStream().setName( "Subtype", mimeType );
}
-
+
/**
* Get the subtype(mimetype) for the embedded file.
- *
+ *
* @return The type of embedded file.
*/
public String getSubtype()
{
return getStream().getNameAsString( "Subtype" );
}
-
+
/**
* Get the size of the embedded file.
- *
+ *
* @return The size of the embedded file.
*/
public int getSize()
{
return getStream().getEmbeddedInt( "Params", "Size" );
}
-
+
/**
* Set the size of the embedded file.
- *
+ *
* @param size The size of the embedded file.
*/
public void setSize( int size )
{
getStream().setEmbeddedInt( "Params", "Size", size );
}
-
+
/**
* Get the creation date of the embedded file.
- *
+ *
* @return The Creation date.
* @throws IOException If there is an error while constructing the date.
*/
@@ -135,20 +135,20 @@
{
return getStream().getEmbeddedDate( "Params", "CreationDate" );
}
-
+
/**
* Set the creation date.
- *
+ *
* @param creation The new creation date.
*/
public void setCreationDate( Calendar creation )
{
getStream().setEmbeddedDate( "Params", "CreationDate", creation );
}
-
+
/**
* Get the mod date of the embedded file.
- *
+ *
* @return The mod date.
* @throws IOException If there is an error while constructing the date.
*/
@@ -156,40 +156,40 @@
{
return getStream().getEmbeddedDate( "Params", "ModDate" );
}
-
+
/**
* Set the mod date.
- *
+ *
* @param mod The new creation mod.
*/
public void setModDate( Calendar mod )
{
getStream().setEmbeddedDate( "Params", "ModDate", mod );
}
-
+
/**
* Get the check sum of the embedded file.
- *
+ *
* @return The check sum of the file.
*/
public String getCheckSum()
{
return getStream().getEmbeddedString( "Params", "CheckSum" );
}
-
+
/**
* Set the check sum.
- *
+ *
* @param checksum The checksum of the file.
*/
public void setCheckSum( String checksum )
{
getStream().setEmbeddedString( "Params", "CheckSum", checksum );
}
-
+
/**
* Get the mac subtype.
- *
+ *
* @return The mac subtype.
*/
public String getMacSubtype()
@@ -202,10 +202,10 @@
}
return retval;
}
-
+
/**
* Set the mac subtype.
- *
+ *
* @param macSubtype The mac subtype.
*/
public void setMacSubtype( String macSubtype )
@@ -221,10 +221,10 @@
params.setEmbeddedString( "Mac", "Subtype", macSubtype );
}
}
-
+
/**
* Get the mac Creator.
- *
+ *
* @return The mac Creator.
*/
public String getMacCreator()
@@ -237,10 +237,10 @@
}
return retval;
}
-
+
/**
* Set the mac Creator.
- *
+ *
* @param macCreator The mac Creator.
*/
public void setMacCreator( String macCreator )
@@ -256,10 +256,10 @@
params.setEmbeddedString( "Mac", "Creator", macCreator );
}
}
-
+
/**
* Get the mac ResFork.
- *
+ *
* @return The mac ResFork.
*/
public String getMacResFork()
@@ -272,10 +272,10 @@
}
return retval;
}
-
+
/**
* Set the mac ResFork.
- *
+ *
* @param macResFork The mac ResFork.
*/
public void setMacResFork( String macResFork )
@@ -291,7 +291,7 @@
params.setEmbeddedString( "Mac", "ResFork", macResFork);
}
}
-
-
-
-}
\ No newline at end of file
+
+
+
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDEmbeddedFile.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDFileSpecification.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDFileSpecification.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDFileSpecification.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDFileSpecification.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common.filespecification;
@@ -40,7 +40,7 @@
* @param base The cos object that describes the fs.
*
* @return The file specification for the COSBase object.
- *
+ *
* @throws IOException If there is an error creating the file spec.
*/
public static PDFileSpecification createFS( COSBase base ) throws IOException
@@ -78,4 +78,4 @@
* @param file The name of the file.
*/
public abstract void setFile( String file );
-}
\ No newline at end of file
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDFileSpecification.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDSimpleFileSpecification.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDSimpleFileSpecification.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDSimpleFileSpecification.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDSimpleFileSpecification.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common.filespecification;
@@ -21,14 +21,14 @@
/**
* A file specification that is just a string.
- *
+ *
* @author <a href="mailto:ben@benlitchfield.com">Ben Litchfield</a>
* @version $Revision: 1.2 $
*/
public class PDSimpleFileSpecification extends PDFileSpecification
{
private COSString file;
-
+
/**
* Constructor.
*
@@ -40,7 +40,7 @@
/**
* Constructor.
- *
+ *
* @param fileName The file that this spec represents.
*/
public PDSimpleFileSpecification( COSString fileName )
@@ -67,7 +67,7 @@
{
file = new COSString( fileName );
}
-
+
/**
* Convert this standard java object to a COS object.
*
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/filespecification/PDSimpleFileSpecification.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDDictionaryFunction.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDDictionaryFunction.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDDictionaryFunction.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDDictionaryFunction.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common.function;
@@ -34,9 +34,9 @@
private COSDictionary function = null;
/**
- * Constructor to create a new blank function, should only be called by
+ * Constructor to create a new blank function, should only be called by
* subclasses.
- *
+ *
* @param functionType An integer describing the function type, only 0,2,3,4
* are defined by the PDF sepc.
*/
@@ -66,14 +66,14 @@
/**
* Get the underlying cos dictionary.
- *
+ *
* @return The underlying cos dictionary.
*/
public COSDictionary getCOSDictionary()
{
return function;
}
-
+
private COSArray getRangeArray( String fieldName, int n )
{
COSArray rangeArray = (COSArray)function.getDictionaryObject( COSName.getPDFName( "Range" ) );
@@ -89,7 +89,7 @@
}
return rangeArray;
}
-
+
/**
* {@inheritDoc}
*/
@@ -117,7 +117,7 @@
rangeArray.set( n*2, new COSFloat( range.getMin() ) );
rangeArray.set( n*2+1, new COSFloat( range.getMax() ) );
}
-
+
/**
* {@inheritDoc}
*/
@@ -126,7 +126,7 @@
COSArray array = getRangeArray( "Domain", 0 );
return array.size() / 2;
}
-
+
/**
* {@inheritDoc}
*/
@@ -145,4 +145,4 @@
rangeArray.set( n*2, new COSFloat( range.getMin() ) );
rangeArray.set( n*2+1, new COSFloat( range.getMax() ) );
}
-}
\ No newline at end of file
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDDictionaryFunction.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunction.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunction.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunction.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunction.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common.function;
@@ -36,11 +36,11 @@
{
/**
* Create the correct PD Model function based on the COS base function.
- *
+ *
* @param function The COS function dictionary.
- *
+ *
* @return The PDModel Function object.
- *
+ *
* @throws IOException If we are unable to create the PDFunction object.
*/
public static PDFunction create( COSBase function ) throws IOException
@@ -82,9 +82,9 @@
else
{
throw new IOException( "Error: Unknown dictionary function type " + functionType );
- }
+ }
}
-
+
}
else
{
@@ -92,14 +92,14 @@
}
return retval;
}
-
+
/**
* This will get the number of output parameters that
* have a range specified. A range for output parameters
* is optional so this may return zero for a function
* that does have output parameters, this will simply return the
* number that have the rnage specified.
- *
+ *
* @return The number of input parameters that have a range
* specified.
*/
@@ -127,7 +127,7 @@
/**
* This will get the number of input parameters that
* have a domain specified.
- *
+ *
* @return The number of input parameters that have a domain
* specified.
*/
@@ -152,4 +152,4 @@
*/
public abstract void setDomainForInput(PDRange range, int n);
-}
\ No newline at end of file
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunction.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType0.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType0.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType0.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType0.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common.function;
@@ -37,7 +37,7 @@
/**
* Constructor to create a new blank type 0 function.
- *
+ *
* @param doc The document that the function will be part of.
*/
protected PDFunctionType0( PDDocument doc )
@@ -54,11 +54,11 @@
{
super( functionDictionary );
}
-
+
/**
- * The "Size" entry, which is the number of samples in
+ * The "Size" entry, which is the number of samples in
* each input dimension of the sample table.
- *
+ *
* @return A List of java.lang.Integer objects.
*/
public List getNumberOfSamples()
@@ -71,44 +71,44 @@
}
return retval;
}
-
+
/**
* Set the samples data, the "Size" entry in the type 0 function.
- *
+ *
* @param samples The samples data.
*/
public void setNumberOfSamples( List samples )
{
getCOSStream().setItem( "Size", COSArrayList.converterToCOSArray( samples ));
}
-
+
/**
* Get the number of bits that the output value will take up. Valid values
* are 1,2,4,8,12,16,24,32.
- *
+ *
* @return Number of bits for each output value.
*/
public int getBitsPerSample()
{
return getCOSStream().getInt( "BitsPerSample" );
}
-
+
/**
* Set the number of bits that the output value will take up. Valid values
* are 1,2,4,8,12,16,24,32.
- *
+ *
* @param bps The number of bits for each output value.
*/
public void setBitsPerSample( int bps )
{
getCOSStream().setInt( "BitsPerSample", bps );
}
-
+
/**
* Get the encode for the input parameter.
- *
+ *
* @param paramNum The function parameter number.
- *
+ *
* @return The encode parameter range or null if none is set.
*/
public PDRange getEncodeForParameter( int paramNum )
@@ -121,12 +121,12 @@
}
return retval;
}
-
+
/**
* Set the encode range for the param number.
- *
+ *
* @param paramNum The parameter number to set then encode values.
- *
+ *
* @param range The range value to set.
*/
public void setEncodeForParameter( int paramNum, PDRange range )
@@ -143,12 +143,12 @@
encode.set( paramNum*2, new COSFloat( range.getMin() ) );
encode.set( paramNum*2+1, new COSFloat( range.getMax() ) );
}
-
+
/**
* Get the decode for the input parameter.
- *
+ *
* @param paramNum The function parameter number.
- *
+ *
* @return The decode parameter range or null if none is set.
*/
public PDRange getDecodeForParameter( int paramNum )
@@ -161,12 +161,12 @@
}
return retval;
}
-
+
/**
* Set the decode range for the param number.
- *
+ *
* @param paramNum The parameter number to set then decode values.
- *
+ *
* @param range The range value to set.
*/
public void setDecodeForParameter( int paramNum, PDRange range )
@@ -183,4 +183,4 @@
encode.set( paramNum*2, new COSFloat( range.getMin() ) );
encode.set( paramNum*2+1, new COSFloat( range.getMax() ) );
}
-}
\ No newline at end of file
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType0.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType2.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType2.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType2.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType2.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common.function;
@@ -44,5 +44,5 @@
{
super( functionDictionary );
}
-
-}
\ No newline at end of file
+
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType2.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType3.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType3.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType3.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType3.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common.function;
@@ -44,5 +44,5 @@
{
super( functionDictionary );
}
-
-}
\ No newline at end of file
+
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType3.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType4.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType4.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType4.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType4.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common.function;
@@ -30,7 +30,7 @@
/**
* Constructor to create a new blank type 4 function.
- *
+ *
* @param doc The document that the function will be part of.
*/
protected PDFunctionType4( PDDocument doc )
@@ -47,4 +47,4 @@
{
super( functionDictionary );
}
-}
\ No newline at end of file
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDFunctionType4.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDStreamFunction.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDStreamFunction.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDStreamFunction.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDStreamFunction.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.common.function;
@@ -36,9 +36,9 @@
private PDStream function = null;
/**
- * Constructor to create a new blank function, should only be called by
+ * Constructor to create a new blank function, should only be called by
* subclasses.
- *
+ *
* @param doc The document that this function is part of.
* @param functionType An integer describing the function type, only 0,2,3,4
* are defined by the PDF sepc.
@@ -78,7 +78,7 @@
{
return function.getStream();
}
-
+
private COSArray getRangeArray( String fieldName, int n )
{
COSArray rangeArray = (COSArray)function.getStream().getDictionaryObject( COSName.getPDFName( "Range" ) );
@@ -94,14 +94,14 @@
}
return rangeArray;
}
-
+
/**
* This will get the number of output parameters that
* have a range specified. A range for output parameters
* is optional so this may return zero for a function
* that does have output parameters, this will simply return the
* number that have the rnage specified.
- *
+ *
* @return The number of input parameters that have a range
* specified.
*/
@@ -138,11 +138,11 @@
rangeArray.set( n*2, new COSFloat( range.getMin() ) );
rangeArray.set( n*2+1, new COSFloat( range.getMax() ) );
}
-
+
/**
* This will get the number of input parameters that
* have a domain specified.
- *
+ *
* @return The number of input parameters that have a domain
* specified.
*/
@@ -151,7 +151,7 @@
COSArray array = getRangeArray( "Domain", 0 );
return array.size() / 2;
}
-
+
/**
* This will get the range for a certain input parameter. This is will never
* return null. If it is not present then the range 0 to 0 will
@@ -179,4 +179,4 @@
rangeArray.set( n*2, new COSFloat( range.getMin() ) );
rangeArray.set( n*2+1, new COSFloat( range.getMax() ) );
}
-}
\ No newline at end of file
+}
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/common/function/PDStreamFunction.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDMarkInfo.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDMarkInfo.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDMarkInfo.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDMarkInfo.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.documentinterchange.logicalstructure;
@@ -30,7 +30,7 @@
public class PDMarkInfo implements COSObjectable
{
private COSDictionary dictionary;
-
+
/**
* Default Constructor.
*
@@ -39,17 +39,17 @@
{
dictionary = new COSDictionary();
}
-
+
/**
* Constructor for an existing MarkInfo element.
- *
+ *
* @param dic The existing dictionary.
*/
public PDMarkInfo( COSDictionary dic )
{
dictionary = dic;
}
-
+
/**
* Convert this standard java object to a COS object.
*
@@ -59,7 +59,7 @@
{
return dictionary;
}
-
+
/**
* Convert this standard java object to a COS object.
*
@@ -69,63 +69,63 @@
{
return dictionary;
}
-
+
/**
* Tells if this is a tagged PDF.
- *
+ *
* @return true If this is a tagged PDF.
*/
public boolean isMarked()
{
return dictionary.getBoolean( "Marked", false );
}
-
+
/**
* Set if this is a tagged PDF.
- *
+ *
* @param value The new marked value.
*/
public void setMarked( boolean value )
{
dictionary.setBoolean( "Marked", value );
}
-
+
/**
* Tells if structure elements use user properties.
- *
+ *
* @return A boolean telling if the structure elements use user properties.
*/
public boolean usesUserProperties()
{
return dictionary.getBoolean( "UserProperties", false );
}
-
+
/**
* Set if the structure elements contain user properties.
- *
+ *
* @param userProps The new value for this property.
*/
public void setUserProperties( boolean userProps )
{
dictionary.setBoolean( "UserProperties", userProps );
}
-
+
/**
- * Tells if this PDF contain 'suspect' tags. See PDF Reference 1.6
+ * Tells if this PDF contain 'suspect' tags. See PDF Reference 1.6
* section 10.6 "Logical Structure" for more information about this property.
- *
+ *
* @return true if the suspect flag has been set.
*/
public boolean isSuspect()
{
return dictionary.getBoolean( "Suspects", false );
}
-
+
/**
- * Set the value of the suspects property. See PDF Reference 1.6
- * section 10.6 "Logical Structure" for more information about this
+ * Set the value of the suspects property. See PDF Reference 1.6
+ * section 10.6 "Logical Structure" for more information about this
* property.
- *
+ *
* @param suspect The new "Suspects" value.
*/
public void setSuspect( boolean suspect )
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDMarkInfo.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureElement.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureElement.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureElement.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureElement.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.documentinterchange.logicalstructure;
@@ -30,7 +30,7 @@
public class PDStructureElement implements COSObjectable
{
private COSDictionary dictionary;
-
+
/**
* Default Constructor.
*
@@ -40,17 +40,17 @@
dictionary = new COSDictionary();
dictionary.setName( COSName.TYPE, "StructElem" );
}
-
+
/**
* Constructor for an existing structure element.
- *
+ *
* @param dic The existing dictionary.
*/
public PDStructureElement( COSDictionary dic )
{
dictionary = dic;
}
-
+
/**
* Convert this standard java object to a COS object.
*
@@ -60,9 +60,9 @@
{
return dictionary;
}
-
+
/**
- * Get the low level dictionary that this object wraps.
+ * Get the low level dictionary that this object wraps.
*
* @return The cos dictionary that matches this Java object.
*/
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureElement.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java
URL: http://svn.apache.org/viewvc/incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java?rev=682665&r1=682664&r2=682665&view=diff
==============================================================================
--- incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java (original)
+++ incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java Tue Aug 5 03:51:13 2008
@@ -1,18 +1,18 @@
/*
- * 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.pdfbox.pdmodel.documentinterchange.logicalstructure;
@@ -30,7 +30,7 @@
public class PDStructureTreeRoot implements COSObjectable
{
private COSDictionary dictionary;
-
+
/**
* Default Constructor.
*
@@ -40,17 +40,17 @@
dictionary = new COSDictionary();
dictionary.setName( COSName.TYPE, "StructTreeRoot" );
}
-
+
/**
* Constructor for an existing structure element.
- *
+ *
* @param dic The existing dictionary.
*/
public PDStructureTreeRoot( COSDictionary dic )
{
dictionary = dic;
}
-
+
/**
* Convert this standard java object to a COS object.
*
@@ -60,9 +60,9 @@
{
return dictionary;
}
-
+
/**
- * Get the low level dictionary that this object wraps.
+ * Get the low level dictionary that this object wraps.
*
* @return The cos dictionary that matches this Java object.
*/
Propchange: incubator/pdfbox/trunk/src/org/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java
------------------------------------------------------------------------------
svn:eol-style = native