[FOray-commit] SF.net SVN: foray: [7694] trunk/foray/foray-ps/src/java/org/foray/ps
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2006-06-17 21:48:49
|
Revision: 7694 Author: victormote Date: 2006-06-17 14:48:10 -0700 (Sat, 17 Jun 2006) ViewCVS: http://svn.sourceforge.net/foray/?rev=7694&view=rev Log Message: ----------- Whitespace changes only. Modified Paths: -------------- trunk/foray/foray-ps/src/java/org/foray/ps/PSBoolean.java trunk/foray/foray-ps/src/java/org/foray/ps/PSColor.java trunk/foray/foray-ps/src/java/org/foray/ps/PSColorSpace.java trunk/foray/foray-ps/src/java/org/foray/ps/PSDictionary.java trunk/foray/foray-ps/src/java/org/foray/ps/PSException.java trunk/foray/foray-ps/src/java/org/foray/ps/PSFile.java trunk/foray/foray-ps/src/java/org/foray/ps/PSFileFilter.java trunk/foray/foray-ps/src/java/org/foray/ps/PSFileReal.java trunk/foray/foray-ps/src/java/org/foray/ps/PSFontID.java trunk/foray/foray-ps/src/java/org/foray/ps/PSGraphicsState.java trunk/foray/foray-ps/src/java/org/foray/ps/PSInput.java trunk/foray/foray-ps/src/java/org/foray/ps/PSInputFile.java trunk/foray/foray-ps/src/java/org/foray/ps/PSInteger.java trunk/foray/foray-ps/src/java/org/foray/ps/PSInterpreter.java trunk/foray/foray-ps/src/java/org/foray/ps/PSMark.java trunk/foray/foray-ps/src/java/org/foray/ps/PSName.java trunk/foray/foray-ps/src/java/org/foray/ps/PSObject.java trunk/foray/foray-ps/src/java/org/foray/ps/PSReal.java trunk/foray/foray-ps/src/java/org/foray/ps/PSStack.java trunk/foray/foray-ps/src/java/org/foray/ps/PSStackGS.java trunk/foray/foray-ps/src/java/org/foray/ps/PSStackObject.java trunk/foray/foray-ps/src/java/org/foray/ps/PSString.java trunk/foray/foray-ps/src/java/org/foray/ps/PSSystemDict.java trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap.java trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap04.java trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap04Entry.java trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap12.java trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap12Entry.java trunk/foray/foray-ps/src/java/org/foray/ps/encode/Encoding.java trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingParser.java trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingSymbol.java trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingZapfDingbats.java trunk/foray/foray-ps/src/java/org/foray/ps/encode/GlyphList.java trunk/foray/foray-ps/src/java/org/foray/ps/encode/GlyphListParser.java trunk/foray/foray-ps/src/java/org/foray/ps/filter/ASCII85Filter.java trunk/foray/foray-ps/src/java/org/foray/ps/filter/ASCIIHexFilter.java trunk/foray/foray-ps/src/java/org/foray/ps/filter/CCITTFaxFilter.java trunk/foray/foray-ps/src/java/org/foray/ps/filter/DCTFilter.java trunk/foray/foray-ps/src/java/org/foray/ps/filter/EncryptFilter.java trunk/foray/foray-ps/src/java/org/foray/ps/filter/FlateFilter.java trunk/foray/foray-ps/src/java/org/foray/ps/filter/PSFilter.java trunk/foray/foray-ps/src/java/org/foray/ps/filter/PSFilterException.java trunk/foray/foray-ps/src/java/org/foray/ps/java2d/Java2DSystemDict.java trunk/foray/foray-ps/src/java/org/foray/ps/pdf/PDFSystemDict.java Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSBoolean.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSBoolean.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSBoolean.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; /** Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSColor.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSColor.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSColor.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2006 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -79,7 +79,7 @@ + PSReal.doubleOut(rgbColors[2]) + " rg" + eol); } - // stroke/border + // stroke/border } else { if (isGray) { buffer.append(PSReal.doubleOut(rgbColors[0]) + " G" + eol); Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSColorSpace.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSColorSpace.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSColorSpace.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2005 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSDictionary.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSDictionary.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSDictionary.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; import java.util.HashMap; Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSException.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSException.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSException.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSFile.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSFile.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSFile.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; import java.io.IOException; Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSFileFilter.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSFileFilter.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSFileFilter.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; import org.foray.ps.filter.PSFilter; Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSFileReal.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSFileReal.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSFileReal.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; import java.io.File; Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSFontID.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSFontID.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSFontID.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; /** Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSGraphicsState.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSGraphicsState.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSGraphicsState.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2005 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSInput.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSInput.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSInput.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; import java.io.IOException; @@ -34,7 +34,7 @@ * be unwrapped (and sometimes decoded) before they can be consumed by the * PostScript interpreter. This interface allows other classes to do that work * and pass the results through to the interpreter. - * + * * Please note that the implementing class is responsible for any buffering of * the data for i/o efficiency purposes. */ Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSInputFile.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSInputFile.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSInputFile.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; import java.io.File; Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSInteger.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSInteger.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSInteger.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; /** @@ -200,7 +200,7 @@ return -1; } return placeValue; - } + } protected PSObject duplicate() { return new PSInteger(interpreter, value); Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSInterpreter.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSInterpreter.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSInterpreter.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004-2005 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; import org.foray.ps.encode.EncodingVector; @@ -376,7 +376,7 @@ int newExecutionStackSize = executionStack.size(); /* * If the execution stack size increased as a result of the - * consumeToken(), we need to + * consumeToken(), we need to */ if (newExecutionStackSize > oldExecutionStackSize) { assert newExecutionStackSize == oldExecutionStackSize + 1: @@ -584,7 +584,7 @@ boolean doneExecuting = false; for (int i = 0; i < dictionaryStack.size() && !doneExecuting; i++) { currentDict = (PSDictionary) (dictionaryStack.peek(i)); - doneExecuting = currentDict.execute(nameObject); + doneExecuting = currentDict.execute(nameObject); } if (! doneExecuting) { logger.error("PostScript name '" + nameObject.value Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSMark.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSMark.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSMark.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; /** Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSName.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSName.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSName.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; /** Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSObject.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSObject.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSObject.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; /** Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSReal.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSReal.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSReal.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004-2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; /** @@ -130,7 +130,7 @@ protected PSName getTypeName() { return new PSName(interpreter, "realtype", true, false); } - + public double getValue() { return this.value; } Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSStack.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSStack.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSStack.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2005 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSStackGS.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSStackGS.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSStackGS.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2005 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSStackObject.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSStackObject.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSStackObject.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2005 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSString.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSString.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSString.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; /** Modified: trunk/foray/foray-ps/src/java/org/foray/ps/PSSystemDict.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/PSSystemDict.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/PSSystemDict.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004-2005 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps; import org.foray.ps.filter.EncryptFilter; @@ -898,7 +898,7 @@ if (! (object instanceof PSDictionary)) { throw new PSException(interpreter, PSErrorDict.TYPECHECK, PSOperator.OPER_BEGIN); - } + } interpreter.getDictionaryStack().push(object); } @@ -1121,7 +1121,7 @@ (charsRead == string.value.length())); pushOperand(newBoolean); } - + protected void roll() throws PSException { try { int j = ((PSInteger) popOperand(PSOperator.OPER_ROLL)).value; @@ -1242,7 +1242,7 @@ PSOperator.OPER_PUT); } psinteger = (PSInteger) what; - char replacementChar = (char) psinteger.value; + char replacementChar = (char) psinteger.value; char[] charArray = new char[string.value.length()]; string.value.getChars(0, string.value.length(), charArray, 0); charArray[index] = replacementChar; @@ -1418,7 +1418,7 @@ PSOperator.OPER_NEG, "only integers and reals supported: " + object); } - + protected void not() throws PSException { PSObject object = popOperand(PSOperator.OPER_NOT); if (object instanceof PSBoolean) { Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2006 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap04.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap04.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap04.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps.encode; /** Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap04Entry.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap04Entry.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap04Entry.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps.encode; /** Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap12.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap12.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap12.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2006 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps.encode; /** Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap12Entry.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap12Entry.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/CMap12Entry.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2006 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id: CMap04Entry.java 6871 2006-03-04 12:06:03Z victormote $ */ - + package org.foray.ps.encode; /** Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/Encoding.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/encode/Encoding.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/Encoding.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -29,7 +29,7 @@ * character codes to array indexes. * Such mapping is usually used for indexes into glyph description arrays in * fonts.</p> - * + * * <p>Note that this definition of <em>Encoding </em>is a superset of the * PostScript and PDF concept of the same name. * That concept is encapsulated in the class {@link EncodingVector}, and is Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingParser.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingParser.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingParser.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2005 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps.encode; import org.foray.common.Logging; Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingSymbol.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingSymbol.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingSymbol.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -30,7 +30,7 @@ * Encoding Vector documented at PDF Reference, 5th Edition, Appendix D.3. * It is identical to that documented at PostScript Language Reference, * 3rd Edition, Appendix E.12. - * + * * <p>Note that this encoding is not a built-in standard encoding in either * PostScript or PDF. However, it is built in to the Symbol font, which is a * standard font for both PostScript and PDF. The purpose of this hard-coded Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -46,7 +46,7 @@ * 2. The name objects created in step 1 are then used as the key into a * dictionary (contained in the Font dictionary) whose values contain the * PostScript instructions needed to actually paint the glyph.</p> - * + * * <p>Nowhere in the above scheme is Unicode encoding contemplated or supported. * Applications that <em>create </em> PostScript output from Unicode input need * a way to convert from that Unicode input to the indexes that are expected @@ -64,7 +64,7 @@ * <li>Use an Encoding instance to obtain the index in that Encoding for the * glyph name obtained above.</li> * </ol> - * + * * <p>However, for efficiency, an Encoding combines the above two steps and * provides a direct mapping from a Unicode code point to the encoded index. * Two parallel arrays are used to make this process efficient. @@ -270,7 +270,7 @@ /** * Sorts the codePoints array by its contents, and sorts the parallel * codePointIndexes arrays in a parallel manner, keeping its elements - * synchronized with those in codePoints. + * synchronized with those in codePoints. * @param codePoints The array of Unicode code points to be sorted. * @param codePointIndexes The array of encoding indexes that whose elements * correspond to elements in codePoints. @@ -309,7 +309,7 @@ } StringBuffer buffer = new StringBuffer(); buffer.append("/Differences\n"); - buffer.append("[ 0 \n"); + buffer.append("[ 0 \n"); buffer.append(indent); int lineLength = indent.length(); for (int i = 0; i < glyphNames.length; i++) { Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingZapfDingbats.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingZapfDingbats.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingZapfDingbats.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -28,7 +28,7 @@ /** * Class containing hard-coded values that represent the ZapfDingbats * Encoding Vector documented at PDF Reference, 5th Edition, Appendix D.4. - * + * * <p>Note that this encoding is not a built-in standard encoding in either * PostScript or PDF. However, it is built in to the Symbol font, which is a * standard font for both PostScript and PDF. The purpose of this hard-coded Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/GlyphList.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/encode/GlyphList.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/GlyphList.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2005 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -34,7 +34,7 @@ * to glyph names. Each set can be though of as a key-value pair, with the keys * being in one array and the values being in the other, and the two joined * together by a common index. In each set, the "key" array is sorted, which - * allows an efficient binary search. + * allows an efficient binary search. */ public class GlyphList { @@ -87,7 +87,7 @@ private short[] glyphNamesForCodePoints = null; /** - * + * */ public GlyphList(String name, String[] sortedGlyphNames, char[][] codePointsForGlyphNames, char[] sortedCodePoints, Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/GlyphListParser.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/encode/GlyphListParser.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/GlyphListParser.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2005 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps.encode; import org.foray.common.Logging; @@ -323,7 +323,7 @@ /** * Main method useful for parsing a glyph list file from the command-line - * and generating the java code that encapsulates that glyph list. + * and generating the java code that encapsulates that glyph list. * @param args Element 0 is the URL of the glyph list to be parsed. * Element 1 is the URL of the file to which the java source code should be * written. Modified: trunk/foray/foray-ps/src/java/org/foray/ps/filter/ASCII85Filter.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/filter/ASCII85Filter.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/filter/ASCII85Filter.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps.filter; import java.io.ByteArrayOutputStream; Modified: trunk/foray/foray-ps/src/java/org/foray/ps/filter/ASCIIHexFilter.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/filter/ASCIIHexFilter.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/filter/ASCIIHexFilter.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps.filter; import org.foray.common.StringUtil; @@ -78,13 +78,13 @@ return null; } // Save the leftover byte - byte savedLeftoverByte = leftoverByte; + byte savedLeftoverByte = leftoverByte; int dataBytes = 0; if (leftoverByte > -1) { dataBytes++; } /* - * Scan the input, looking for end-of-data character & counting data + * Scan the input, looking for end-of-data character & counting data * bytes. */ for (int i = 0; i < input.length && eodLocation < 0; i ++) { Modified: trunk/foray/foray-ps/src/java/org/foray/ps/filter/CCITTFaxFilter.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/filter/CCITTFaxFilter.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/filter/CCITTFaxFilter.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps.filter; /** Modified: trunk/foray/foray-ps/src/java/org/foray/ps/filter/DCTFilter.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/filter/DCTFilter.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/filter/DCTFilter.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps.filter; /** Modified: trunk/foray/foray-ps/src/java/org/foray/ps/filter/EncryptFilter.java =================================================================== --- trunk/foray/foray-ps/src/java/org/foray/ps/filter/EncryptFilter.java 2006-06-17 21:39:56 UTC (rev 7693) +++ trunk/foray/foray-ps/src/java/org/foray/ps/filter/EncryptFilter.java 2006-06-17 21:48:10 UTC (rev 7694) @@ -1,19 +1,19 @@ /* * Copyright 2004 The FOray Project. * http://www.foray.org - * + * * 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. - * + * * This work is in part derived from the following work(s), used with the * permission of the licensor: * Apache FOP, licensed by the Apache Software Foundation @@ -21,7 +21,7 @@ */ /* $Id$ */ - + package org.foray.ps.filter; import org.foray.common.StringUtil; @@ -30,13 +30,13 @@ * Handles the PostScript encryption used in the "eexec" operator, usually used * in Type1 fonts to encrypt the actual glyph-drawing data and the /Private * dictionary. - * + * * Please note that although this is a true filter, it should not be used * directly in PostScript or PDF output. It is used by PostScript interpreters * to decode contents processed by the "eexec" operator, and is used by font * writing or embedding programs that need to encrypt code to be used by that * operator. It is not (to our knowledge) available as a standard filter. - * + * * This filter is designed to allow chunks of data to be encoded or decoded at * a time. In other words, the entire set of data does not have to be encoded * or decoded as the same time, but can be done in pieces. (This was done to @@ -49,15 +49,15 @@ * dependent on keeping track of their state from one chunk to the next. * Of course, there is nothing wrong with encoding or decoding your entire * input in one chunk, if you wish to do so. - * - * + * + * * Type1 fonts actually use a double layer of encryption, whereby the glyph * definitions are encrypted using this algorithm, then a large chunk of the * font file, which includes the glyph definitions, is encrypted again, also * using this algorithm (although with different seeding and constants). This * situation can be handled by using two instances of this class, one for the * inside encryption and one for the outside. - * + * * The definition of the algorithms implemented in this class can be found in * Chapter 7 of the Adobe Type 1 Font Format Specification. The PostScript * Language Reference Manual (2nd Edition) cites this document as the @@ -191,7 +191,7 @@ long temp2 = unsignedCipherText + encryptionKey; temp2 *= ENCRYPTION_CONSTANT_1; temp2 += ENCRYPTION_CONSTANT_2; - temp2 %= 65536; + ... [truncated message content] |