2004-04-09 09:05:39 -04:00
|
|
|
|
|
|
|
/* ====================================================================
|
2006-12-22 14:18:16 -05:00
|
|
|
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
|
2004-04-09 09:05:39 -04:00
|
|
|
|
|
|
|
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.
|
|
|
|
==================================================================== */
|
|
|
|
|
2004-04-09 07:45:38 -04:00
|
|
|
package org.apache.poi.ddf;
|
|
|
|
|
2005-05-01 07:26:18 -04:00
|
|
|
import org.apache.poi.hssf.record.RecordFormatException;
|
2004-04-09 07:45:38 -04:00
|
|
|
import org.apache.poi.util.HexDump;
|
|
|
|
import org.apache.poi.util.LittleEndian;
|
|
|
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This record defines the drawing groups used for a particular sheet.
|
|
|
|
*/
|
|
|
|
public class EscherDggRecord
|
|
|
|
extends EscherRecord
|
|
|
|
{
|
|
|
|
public static final short RECORD_ID = (short) 0xF006;
|
|
|
|
public static final String RECORD_DESCRIPTION = "MsofbtDgg";
|
|
|
|
|
|
|
|
private int field_1_shapeIdMax;
|
|
|
|
// private int field_2_numIdClusters; // for some reason the number of clusters is actually the real number + 1
|
|
|
|
private int field_3_numShapesSaved;
|
|
|
|
private int field_4_drawingsSaved;
|
|
|
|
private FileIdCluster[] field_5_fileIdClusters;
|
Merged revisions 638786-638802,638805-638811,638813-638814,638816-639230,639233-639241,639243-639253,639255-639486,639488-639601,639603-639835,639837-639917,639919-640056,640058-640710,640712-641156,641158-641184,641186-641795,641797-641798,641800-641933,641935-641963,641965-641966,641968-641995,641997-642230,642232-642562,642564-642565,642568-642570,642572-642573,642576-642736,642739-642877,642879,642881-642890,642892-642903,642905-642945,642947-643624,643626-643653,643655-643669,643671,643673-643830,643832-643833,643835-644342,644344-644472,644474-644508,644510-645347,645349-645351,645353-645559,645561-645565,645568-645951,645953-646193,646195-646311,646313-646404,646406-646665,646667-646853,646855-646869,646871-647151,647153-647185,647187-647277,647279-647566,647568-647573,647575,647578-647711,647714-647737,647739-647823,647825-648155,648157-648202,648204-648273,648275,648277-648302,648304-648333,648335-648588,648590-648622,648625-648673,648675-649141,649144,649146-649556,649558-649795,649799,649801-649910,649912-649913,649915-650128,650131-650132,650134-650137,650140-650914,650916-653812 via svnmerge from
https://svn.apache.org:443/repos/asf/poi/trunk
........
r651992 | nick | 2008-04-27 19:02:13 +0100 (Sun, 27 Apr 2008) | 1 line
Fix from Trejkaz from bug #44857 - Avoid OOM on unknown escher records when EscherMetafileBlip is incorrect
........
r652285 | yegor | 2008-04-30 07:18:05 +0100 (Wed, 30 Apr 2008) | 1 line
start a new section for 3.1-beta2
........
r652288 | yegor | 2008-04-30 07:19:38 +0100 (Wed, 30 Apr 2008) | 1 line
correctly process PICT blips (see bug #44886)
........
r652290 | yegor | 2008-04-30 07:21:04 +0100 (Wed, 30 Apr 2008) | 1 line
more flexible creation of a cluster
........
r652292 | yegor | 2008-04-30 07:22:02 +0100 (Wed, 30 Apr 2008) | 1 line
a few more words in the release guide
........
r652298 | yegor | 2008-04-30 07:29:11 +0100 (Wed, 30 Apr 2008) | 1 line
more work on rendering ppt slides
........
r652329 | nick | 2008-04-30 12:10:49 +0100 (Wed, 30 Apr 2008) | 1 line
Tests to show that bugs 44891 and 44861 were both already fixed
........
r652426 | josh | 2008-05-01 04:25:37 +0100 (Thu, 01 May 2008) | 1 line
fixed bug 44892 - made HSSFWorkbook.getSheet(String) case insensitive
........
r652446 | josh | 2008-05-01 08:42:18 +0100 (Thu, 01 May 2008) | 1 line
44914 - Fix/suppress warning message - WARN. Unread n bytes of record 0xNN
........
r652561 | josh | 2008-05-01 16:46:21 +0100 (Thu, 01 May 2008) | 1 line
added disabled junit for bug 44916
........
r652934 | josh | 2008-05-02 23:36:49 +0100 (Fri, 02 May 2008) | 1 line
44921 - allow Ptg.writeBytes() to be called on relative ref Ptgs (RefN* and AreaN*)
........
r652936 | josh | 2008-05-02 23:49:38 +0100 (Fri, 02 May 2008) | 1 line
should have been submitted with r652934
........
r652994 | josh | 2008-05-03 04:59:32 +0100 (Sat, 03 May 2008) | 1 line
Fixed 44675 - Parameter operand classes (function metadata) required to encode SUM() etc properly. Added parse validation for number of parameters
........
r653117 | josh | 2008-05-03 20:53:38 +0100 (Sat, 03 May 2008) | 1 line
44929 - Improved error handling in HSSFWorkbook when attempting to read a BIFF5 file
........
r653125 | josh | 2008-05-03 21:13:56 +0100 (Sat, 03 May 2008) | 1 line
Swapped ArrayIndexOutOfBoundsException for plain array length check in AbstractFunctionPtg.getParameterClass(). (To help debugging when trying to find a real AIOOB)
........
r653484 | yegor | 2008-05-05 14:59:11 +0100 (Mon, 05 May 2008) | 1 line
take into account indentation in HSSFSheet.autosizeColumn
........
r653485 | yegor | 2008-05-05 14:59:38 +0100 (Mon, 05 May 2008) | 1 line
take into account indentation in HSSFSheet.autosizeColumn
........
r653486 | yegor | 2008-05-05 15:00:30 +0100 (Mon, 05 May 2008) | 1 line
getting ready to 3.1-beta2
........
r653520 | yegor | 2008-05-05 17:12:21 +0100 (Mon, 05 May 2008) | 1 line
bug #44235 is not reproducible in 3.1-beta1
........
r653521 | yegor | 2008-05-05 17:13:24 +0100 (Mon, 05 May 2008) | 1 line
restored mistakenly commented line
........
r653551 | josh | 2008-05-05 19:30:49 +0100 (Mon, 05 May 2008) | 1 line
Added test case method javadoc for old bug 44675
........
r653608 | josh | 2008-05-05 22:38:07 +0100 (Mon, 05 May 2008) | 1 line
Follow-on from 28754 - StringPtg.toFormulaString() should escape double quotes
........
r653668 | josh | 2008-05-06 03:02:41 +0100 (Tue, 06 May 2008) | 1 line
42564 - fixed ArrayPtg to use ConstantValueParser. Fixed a few other ArrayPtg encoding issues.
........
r653675 | josh | 2008-05-06 04:57:15 +0100 (Tue, 06 May 2008) | 1 line
42570 - fixed LabelRecord to use empty string instead of null when the length is zero.
........
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@653822 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 12:00:36 -04:00
|
|
|
private int maxDgId;
|
2004-04-09 07:45:38 -04:00
|
|
|
|
|
|
|
public static class FileIdCluster
|
|
|
|
{
|
|
|
|
public FileIdCluster( int drawingGroupId, int numShapeIdsUsed )
|
|
|
|
{
|
|
|
|
this.field_1_drawingGroupId = drawingGroupId;
|
|
|
|
this.field_2_numShapeIdsUsed = numShapeIdsUsed;
|
|
|
|
}
|
|
|
|
|
|
|
|
private int field_1_drawingGroupId;
|
|
|
|
private int field_2_numShapeIdsUsed;
|
|
|
|
|
|
|
|
public int getDrawingGroupId()
|
|
|
|
{
|
|
|
|
return field_1_drawingGroupId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getNumShapeIdsUsed()
|
|
|
|
{
|
|
|
|
return field_2_numShapeIdsUsed;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void incrementShapeId( )
|
|
|
|
{
|
|
|
|
this.field_2_numShapeIdsUsed++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This method deserializes the record from a byte array.
|
|
|
|
*
|
|
|
|
* @param data The byte array containing the escher record information
|
|
|
|
* @param offset The starting offset into <code>data</code>.
|
|
|
|
* @param recordFactory May be null since this is not a container record.
|
|
|
|
* @return The number of bytes read from the byte array.
|
|
|
|
*/
|
|
|
|
public int fillFields( byte[] data, int offset, EscherRecordFactory recordFactory )
|
|
|
|
{
|
|
|
|
int bytesRemaining = readHeader( data, offset );
|
|
|
|
int pos = offset + 8;
|
|
|
|
int size = 0;
|
|
|
|
field_1_shapeIdMax = LittleEndian.getInt( data, pos + size );size+=4;
|
|
|
|
int field_2_numIdClusters = LittleEndian.getInt( data, pos + size );size+=4;
|
|
|
|
field_3_numShapesSaved = LittleEndian.getInt( data, pos + size );size+=4;
|
|
|
|
field_4_drawingsSaved = LittleEndian.getInt( data, pos + size );size+=4;
|
2005-05-01 07:26:18 -04:00
|
|
|
field_5_fileIdClusters = new FileIdCluster[(bytesRemaining-size) / 8]; // Can't rely on field_2_numIdClusters
|
|
|
|
for (int i = 0; i < field_5_fileIdClusters.length; i++)
|
2004-04-09 07:45:38 -04:00
|
|
|
{
|
|
|
|
field_5_fileIdClusters[i] = new FileIdCluster(LittleEndian.getInt( data, pos + size ), LittleEndian.getInt( data, pos + size + 4 ));
|
Merged revisions 638786-638802,638805-638811,638813-638814,638816-639230,639233-639241,639243-639253,639255-639486,639488-639601,639603-639835,639837-639917,639919-640056,640058-640710,640712-641156,641158-641184,641186-641795,641797-641798,641800-641933,641935-641963,641965-641966,641968-641995,641997-642230,642232-642562,642564-642565,642568-642570,642572-642573,642576-642736,642739-642877,642879,642881-642890,642892-642903,642905-642945,642947-643624,643626-643653,643655-643669,643671,643673-643830,643832-643833,643835-644342,644344-644472,644474-644508,644510-645347,645349-645351,645353-645559,645561-645565,645568-645951,645953-646193,646195-646311,646313-646404,646406-646665,646667-646853,646855-646869,646871-647151,647153-647185,647187-647277,647279-647566,647568-647573,647575,647578-647711,647714-647737,647739-647823,647825-648155,648157-648202,648204-648273,648275,648277-648302,648304-648333,648335-648588,648590-648622,648625-648673,648675-649141,649144,649146-649556,649558-649795,649799,649801-649910,649912-649913,649915-650128,650131-650132,650134-650137,650140-650914,650916-653812 via svnmerge from
https://svn.apache.org:443/repos/asf/poi/trunk
........
r651992 | nick | 2008-04-27 19:02:13 +0100 (Sun, 27 Apr 2008) | 1 line
Fix from Trejkaz from bug #44857 - Avoid OOM on unknown escher records when EscherMetafileBlip is incorrect
........
r652285 | yegor | 2008-04-30 07:18:05 +0100 (Wed, 30 Apr 2008) | 1 line
start a new section for 3.1-beta2
........
r652288 | yegor | 2008-04-30 07:19:38 +0100 (Wed, 30 Apr 2008) | 1 line
correctly process PICT blips (see bug #44886)
........
r652290 | yegor | 2008-04-30 07:21:04 +0100 (Wed, 30 Apr 2008) | 1 line
more flexible creation of a cluster
........
r652292 | yegor | 2008-04-30 07:22:02 +0100 (Wed, 30 Apr 2008) | 1 line
a few more words in the release guide
........
r652298 | yegor | 2008-04-30 07:29:11 +0100 (Wed, 30 Apr 2008) | 1 line
more work on rendering ppt slides
........
r652329 | nick | 2008-04-30 12:10:49 +0100 (Wed, 30 Apr 2008) | 1 line
Tests to show that bugs 44891 and 44861 were both already fixed
........
r652426 | josh | 2008-05-01 04:25:37 +0100 (Thu, 01 May 2008) | 1 line
fixed bug 44892 - made HSSFWorkbook.getSheet(String) case insensitive
........
r652446 | josh | 2008-05-01 08:42:18 +0100 (Thu, 01 May 2008) | 1 line
44914 - Fix/suppress warning message - WARN. Unread n bytes of record 0xNN
........
r652561 | josh | 2008-05-01 16:46:21 +0100 (Thu, 01 May 2008) | 1 line
added disabled junit for bug 44916
........
r652934 | josh | 2008-05-02 23:36:49 +0100 (Fri, 02 May 2008) | 1 line
44921 - allow Ptg.writeBytes() to be called on relative ref Ptgs (RefN* and AreaN*)
........
r652936 | josh | 2008-05-02 23:49:38 +0100 (Fri, 02 May 2008) | 1 line
should have been submitted with r652934
........
r652994 | josh | 2008-05-03 04:59:32 +0100 (Sat, 03 May 2008) | 1 line
Fixed 44675 - Parameter operand classes (function metadata) required to encode SUM() etc properly. Added parse validation for number of parameters
........
r653117 | josh | 2008-05-03 20:53:38 +0100 (Sat, 03 May 2008) | 1 line
44929 - Improved error handling in HSSFWorkbook when attempting to read a BIFF5 file
........
r653125 | josh | 2008-05-03 21:13:56 +0100 (Sat, 03 May 2008) | 1 line
Swapped ArrayIndexOutOfBoundsException for plain array length check in AbstractFunctionPtg.getParameterClass(). (To help debugging when trying to find a real AIOOB)
........
r653484 | yegor | 2008-05-05 14:59:11 +0100 (Mon, 05 May 2008) | 1 line
take into account indentation in HSSFSheet.autosizeColumn
........
r653485 | yegor | 2008-05-05 14:59:38 +0100 (Mon, 05 May 2008) | 1 line
take into account indentation in HSSFSheet.autosizeColumn
........
r653486 | yegor | 2008-05-05 15:00:30 +0100 (Mon, 05 May 2008) | 1 line
getting ready to 3.1-beta2
........
r653520 | yegor | 2008-05-05 17:12:21 +0100 (Mon, 05 May 2008) | 1 line
bug #44235 is not reproducible in 3.1-beta1
........
r653521 | yegor | 2008-05-05 17:13:24 +0100 (Mon, 05 May 2008) | 1 line
restored mistakenly commented line
........
r653551 | josh | 2008-05-05 19:30:49 +0100 (Mon, 05 May 2008) | 1 line
Added test case method javadoc for old bug 44675
........
r653608 | josh | 2008-05-05 22:38:07 +0100 (Mon, 05 May 2008) | 1 line
Follow-on from 28754 - StringPtg.toFormulaString() should escape double quotes
........
r653668 | josh | 2008-05-06 03:02:41 +0100 (Tue, 06 May 2008) | 1 line
42564 - fixed ArrayPtg to use ConstantValueParser. Fixed a few other ArrayPtg encoding issues.
........
r653675 | josh | 2008-05-06 04:57:15 +0100 (Tue, 06 May 2008) | 1 line
42570 - fixed LabelRecord to use empty string instead of null when the length is zero.
........
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@653822 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 12:00:36 -04:00
|
|
|
maxDgId = Math.max(maxDgId, field_5_fileIdClusters[i].getDrawingGroupId());
|
2004-04-09 07:45:38 -04:00
|
|
|
size += 8;
|
|
|
|
}
|
|
|
|
bytesRemaining -= size;
|
|
|
|
if (bytesRemaining != 0)
|
|
|
|
throw new RecordFormatException("Expecting no remaining data but got " + bytesRemaining + " byte(s).");
|
|
|
|
return 8 + size + bytesRemaining;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This method serializes this escher record into a byte array.
|
|
|
|
*
|
|
|
|
* @param offset The offset into <code>data</code> to start writing the record data to.
|
|
|
|
* @param data The byte array to serialize to.
|
|
|
|
* @param listener A listener to retrieve start and end callbacks. Use a <code>NullEscherSerailizationListener</code> to ignore these events.
|
|
|
|
* @return The number of bytes written.
|
|
|
|
*
|
|
|
|
* @see NullEscherSerializationListener
|
|
|
|
*/
|
|
|
|
public int serialize( int offset, byte[] data, EscherSerializationListener listener )
|
|
|
|
{
|
|
|
|
listener.beforeRecordSerialize( offset, getRecordId(), this );
|
|
|
|
|
|
|
|
int pos = offset;
|
|
|
|
LittleEndian.putShort( data, pos, getOptions() ); pos += 2;
|
|
|
|
LittleEndian.putShort( data, pos, getRecordId() ); pos += 2;
|
|
|
|
int remainingBytes = getRecordSize() - 8;
|
|
|
|
LittleEndian.putInt( data, pos, remainingBytes ); pos += 4;
|
2005-05-01 07:26:18 -04:00
|
|
|
|
2004-04-09 07:45:38 -04:00
|
|
|
LittleEndian.putInt( data, pos, field_1_shapeIdMax ); pos += 4;
|
|
|
|
LittleEndian.putInt( data, pos, getNumIdClusters() ); pos += 4;
|
|
|
|
LittleEndian.putInt( data, pos, field_3_numShapesSaved ); pos += 4;
|
|
|
|
LittleEndian.putInt( data, pos, field_4_drawingsSaved ); pos += 4;
|
|
|
|
for ( int i = 0; i < field_5_fileIdClusters.length; i++ )
|
|
|
|
{
|
|
|
|
LittleEndian.putInt( data, pos, field_5_fileIdClusters[i].field_1_drawingGroupId ); pos += 4;
|
|
|
|
LittleEndian.putInt( data, pos, field_5_fileIdClusters[i].field_2_numShapeIdsUsed ); pos += 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
listener.afterRecordSerialize( pos, getRecordId(), getRecordSize(), this );
|
|
|
|
return getRecordSize();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the number of bytes that are required to serialize this record.
|
|
|
|
*
|
|
|
|
* @return Number of bytes
|
|
|
|
*/
|
|
|
|
public int getRecordSize()
|
|
|
|
{
|
|
|
|
return 8 + 16 + (8 * field_5_fileIdClusters.length);
|
|
|
|
}
|
|
|
|
|
|
|
|
public short getRecordId()
|
|
|
|
{
|
|
|
|
return RECORD_ID;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The short name for this record
|
|
|
|
*/
|
|
|
|
public String getRecordName()
|
|
|
|
{
|
|
|
|
return "Dgg";
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toString()
|
|
|
|
{
|
|
|
|
String nl = System.getProperty("line.separator");
|
|
|
|
|
|
|
|
// String extraData;
|
|
|
|
// ByteArrayOutputStream b = new ByteArrayOutputStream();
|
|
|
|
// try
|
|
|
|
// {
|
|
|
|
// HexDump.dump(this.remainingData, 0, b, 0);
|
|
|
|
// extraData = b.toString();
|
|
|
|
// }
|
|
|
|
// catch ( Exception e )
|
|
|
|
// {
|
|
|
|
// extraData = "error";
|
|
|
|
// }
|
|
|
|
StringBuffer field_5_string = new StringBuffer();
|
|
|
|
for ( int i = 0; i < field_5_fileIdClusters.length; i++ )
|
|
|
|
{
|
|
|
|
field_5_string.append(" DrawingGroupId").append(i+1).append(": ");
|
|
|
|
field_5_string.append(field_5_fileIdClusters[i].field_1_drawingGroupId);
|
|
|
|
field_5_string.append(nl);
|
|
|
|
field_5_string.append(" NumShapeIdsUsed").append(i+1).append(": ");
|
|
|
|
field_5_string.append(field_5_fileIdClusters[i].field_2_numShapeIdsUsed);
|
|
|
|
field_5_string.append(nl);
|
|
|
|
}
|
|
|
|
return getClass().getName() + ":" + nl +
|
|
|
|
" RecordId: 0x" + HexDump.toHex(RECORD_ID) + nl +
|
|
|
|
" Options: 0x" + HexDump.toHex(getOptions()) + nl +
|
|
|
|
" ShapeIdMax: " + field_1_shapeIdMax + nl +
|
|
|
|
" NumIdClusters: " + getNumIdClusters() + nl +
|
|
|
|
" NumShapesSaved: " + field_3_numShapesSaved + nl +
|
|
|
|
" DrawingsSaved: " + field_4_drawingsSaved + nl +
|
|
|
|
"" + field_5_string.toString();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getShapeIdMax()
|
|
|
|
{
|
|
|
|
return field_1_shapeIdMax;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The maximum is actually the next available. shape id.
|
|
|
|
*/
|
|
|
|
public void setShapeIdMax( int field_1_shapeIdMax )
|
|
|
|
{
|
|
|
|
this.field_1_shapeIdMax = field_1_shapeIdMax;
|
|
|
|
}
|
|
|
|
|
2005-05-01 07:26:18 -04:00
|
|
|
/**
|
|
|
|
* Number of id clusters + 1
|
|
|
|
*/
|
2004-04-09 07:45:38 -04:00
|
|
|
public int getNumIdClusters()
|
|
|
|
{
|
|
|
|
return field_5_fileIdClusters.length + 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getNumShapesSaved()
|
|
|
|
{
|
|
|
|
return field_3_numShapesSaved;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setNumShapesSaved( int field_3_numShapesSaved )
|
|
|
|
{
|
|
|
|
this.field_3_numShapesSaved = field_3_numShapesSaved;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getDrawingsSaved()
|
|
|
|
{
|
|
|
|
return field_4_drawingsSaved;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDrawingsSaved( int field_4_drawingsSaved )
|
|
|
|
{
|
|
|
|
this.field_4_drawingsSaved = field_4_drawingsSaved;
|
|
|
|
}
|
|
|
|
|
Merged revisions 638786-638802,638805-638811,638813-638814,638816-639230,639233-639241,639243-639253,639255-639486,639488-639601,639603-639835,639837-639917,639919-640056,640058-640710,640712-641156,641158-641184,641186-641795,641797-641798,641800-641933,641935-641963,641965-641966,641968-641995,641997-642230,642232-642562,642564-642565,642568-642570,642572-642573,642576-642736,642739-642877,642879,642881-642890,642892-642903,642905-642945,642947-643624,643626-643653,643655-643669,643671,643673-643830,643832-643833,643835-644342,644344-644472,644474-644508,644510-645347,645349-645351,645353-645559,645561-645565,645568-645951,645953-646193,646195-646311,646313-646404,646406-646665,646667-646853,646855-646869,646871-647151,647153-647185,647187-647277,647279-647566,647568-647573,647575,647578-647711,647714-647737,647739-647823,647825-648155,648157-648202,648204-648273,648275,648277-648302,648304-648333,648335-648588,648590-648622,648625-648673,648675-649141,649144,649146-649556,649558-649795,649799,649801-649910,649912-649913,649915-650128,650131-650132,650134-650137,650140-650914,650916-653812 via svnmerge from
https://svn.apache.org:443/repos/asf/poi/trunk
........
r651992 | nick | 2008-04-27 19:02:13 +0100 (Sun, 27 Apr 2008) | 1 line
Fix from Trejkaz from bug #44857 - Avoid OOM on unknown escher records when EscherMetafileBlip is incorrect
........
r652285 | yegor | 2008-04-30 07:18:05 +0100 (Wed, 30 Apr 2008) | 1 line
start a new section for 3.1-beta2
........
r652288 | yegor | 2008-04-30 07:19:38 +0100 (Wed, 30 Apr 2008) | 1 line
correctly process PICT blips (see bug #44886)
........
r652290 | yegor | 2008-04-30 07:21:04 +0100 (Wed, 30 Apr 2008) | 1 line
more flexible creation of a cluster
........
r652292 | yegor | 2008-04-30 07:22:02 +0100 (Wed, 30 Apr 2008) | 1 line
a few more words in the release guide
........
r652298 | yegor | 2008-04-30 07:29:11 +0100 (Wed, 30 Apr 2008) | 1 line
more work on rendering ppt slides
........
r652329 | nick | 2008-04-30 12:10:49 +0100 (Wed, 30 Apr 2008) | 1 line
Tests to show that bugs 44891 and 44861 were both already fixed
........
r652426 | josh | 2008-05-01 04:25:37 +0100 (Thu, 01 May 2008) | 1 line
fixed bug 44892 - made HSSFWorkbook.getSheet(String) case insensitive
........
r652446 | josh | 2008-05-01 08:42:18 +0100 (Thu, 01 May 2008) | 1 line
44914 - Fix/suppress warning message - WARN. Unread n bytes of record 0xNN
........
r652561 | josh | 2008-05-01 16:46:21 +0100 (Thu, 01 May 2008) | 1 line
added disabled junit for bug 44916
........
r652934 | josh | 2008-05-02 23:36:49 +0100 (Fri, 02 May 2008) | 1 line
44921 - allow Ptg.writeBytes() to be called on relative ref Ptgs (RefN* and AreaN*)
........
r652936 | josh | 2008-05-02 23:49:38 +0100 (Fri, 02 May 2008) | 1 line
should have been submitted with r652934
........
r652994 | josh | 2008-05-03 04:59:32 +0100 (Sat, 03 May 2008) | 1 line
Fixed 44675 - Parameter operand classes (function metadata) required to encode SUM() etc properly. Added parse validation for number of parameters
........
r653117 | josh | 2008-05-03 20:53:38 +0100 (Sat, 03 May 2008) | 1 line
44929 - Improved error handling in HSSFWorkbook when attempting to read a BIFF5 file
........
r653125 | josh | 2008-05-03 21:13:56 +0100 (Sat, 03 May 2008) | 1 line
Swapped ArrayIndexOutOfBoundsException for plain array length check in AbstractFunctionPtg.getParameterClass(). (To help debugging when trying to find a real AIOOB)
........
r653484 | yegor | 2008-05-05 14:59:11 +0100 (Mon, 05 May 2008) | 1 line
take into account indentation in HSSFSheet.autosizeColumn
........
r653485 | yegor | 2008-05-05 14:59:38 +0100 (Mon, 05 May 2008) | 1 line
take into account indentation in HSSFSheet.autosizeColumn
........
r653486 | yegor | 2008-05-05 15:00:30 +0100 (Mon, 05 May 2008) | 1 line
getting ready to 3.1-beta2
........
r653520 | yegor | 2008-05-05 17:12:21 +0100 (Mon, 05 May 2008) | 1 line
bug #44235 is not reproducible in 3.1-beta1
........
r653521 | yegor | 2008-05-05 17:13:24 +0100 (Mon, 05 May 2008) | 1 line
restored mistakenly commented line
........
r653551 | josh | 2008-05-05 19:30:49 +0100 (Mon, 05 May 2008) | 1 line
Added test case method javadoc for old bug 44675
........
r653608 | josh | 2008-05-05 22:38:07 +0100 (Mon, 05 May 2008) | 1 line
Follow-on from 28754 - StringPtg.toFormulaString() should escape double quotes
........
r653668 | josh | 2008-05-06 03:02:41 +0100 (Tue, 06 May 2008) | 1 line
42564 - fixed ArrayPtg to use ConstantValueParser. Fixed a few other ArrayPtg encoding issues.
........
r653675 | josh | 2008-05-06 04:57:15 +0100 (Tue, 06 May 2008) | 1 line
42570 - fixed LabelRecord to use empty string instead of null when the length is zero.
........
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@653822 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 12:00:36 -04:00
|
|
|
/**
|
|
|
|
* @return The maximum drawing group ID
|
|
|
|
*/
|
|
|
|
public int getMaxDrawingGroupId(){
|
|
|
|
return maxDgId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public FileIdCluster[] getFileIdClusters()
|
2004-04-09 07:45:38 -04:00
|
|
|
{
|
|
|
|
return field_5_fileIdClusters;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setFileIdClusters( FileIdCluster[] field_5_fileIdClusters )
|
|
|
|
{
|
|
|
|
this.field_5_fileIdClusters = field_5_fileIdClusters;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void addCluster( int dgId, int numShapedUsed )
|
Merged revisions 638786-638802,638805-638811,638813-638814,638816-639230,639233-639241,639243-639253,639255-639486,639488-639601,639603-639835,639837-639917,639919-640056,640058-640710,640712-641156,641158-641184,641186-641795,641797-641798,641800-641933,641935-641963,641965-641966,641968-641995,641997-642230,642232-642562,642564-642565,642568-642570,642572-642573,642576-642736,642739-642877,642879,642881-642890,642892-642903,642905-642945,642947-643624,643626-643653,643655-643669,643671,643673-643830,643832-643833,643835-644342,644344-644472,644474-644508,644510-645347,645349-645351,645353-645559,645561-645565,645568-645951,645953-646193,646195-646311,646313-646404,646406-646665,646667-646853,646855-646869,646871-647151,647153-647185,647187-647277,647279-647566,647568-647573,647575,647578-647711,647714-647737,647739-647823,647825-648155,648157-648202,648204-648273,648275,648277-648302,648304-648333,648335-648588,648590-648622,648625-648673,648675-649141,649144,649146-649556,649558-649795,649799,649801-649910,649912-649913,649915-650128,650131-650132,650134-650137,650140-650914,650916-653812 via svnmerge from
https://svn.apache.org:443/repos/asf/poi/trunk
........
r651992 | nick | 2008-04-27 19:02:13 +0100 (Sun, 27 Apr 2008) | 1 line
Fix from Trejkaz from bug #44857 - Avoid OOM on unknown escher records when EscherMetafileBlip is incorrect
........
r652285 | yegor | 2008-04-30 07:18:05 +0100 (Wed, 30 Apr 2008) | 1 line
start a new section for 3.1-beta2
........
r652288 | yegor | 2008-04-30 07:19:38 +0100 (Wed, 30 Apr 2008) | 1 line
correctly process PICT blips (see bug #44886)
........
r652290 | yegor | 2008-04-30 07:21:04 +0100 (Wed, 30 Apr 2008) | 1 line
more flexible creation of a cluster
........
r652292 | yegor | 2008-04-30 07:22:02 +0100 (Wed, 30 Apr 2008) | 1 line
a few more words in the release guide
........
r652298 | yegor | 2008-04-30 07:29:11 +0100 (Wed, 30 Apr 2008) | 1 line
more work on rendering ppt slides
........
r652329 | nick | 2008-04-30 12:10:49 +0100 (Wed, 30 Apr 2008) | 1 line
Tests to show that bugs 44891 and 44861 were both already fixed
........
r652426 | josh | 2008-05-01 04:25:37 +0100 (Thu, 01 May 2008) | 1 line
fixed bug 44892 - made HSSFWorkbook.getSheet(String) case insensitive
........
r652446 | josh | 2008-05-01 08:42:18 +0100 (Thu, 01 May 2008) | 1 line
44914 - Fix/suppress warning message - WARN. Unread n bytes of record 0xNN
........
r652561 | josh | 2008-05-01 16:46:21 +0100 (Thu, 01 May 2008) | 1 line
added disabled junit for bug 44916
........
r652934 | josh | 2008-05-02 23:36:49 +0100 (Fri, 02 May 2008) | 1 line
44921 - allow Ptg.writeBytes() to be called on relative ref Ptgs (RefN* and AreaN*)
........
r652936 | josh | 2008-05-02 23:49:38 +0100 (Fri, 02 May 2008) | 1 line
should have been submitted with r652934
........
r652994 | josh | 2008-05-03 04:59:32 +0100 (Sat, 03 May 2008) | 1 line
Fixed 44675 - Parameter operand classes (function metadata) required to encode SUM() etc properly. Added parse validation for number of parameters
........
r653117 | josh | 2008-05-03 20:53:38 +0100 (Sat, 03 May 2008) | 1 line
44929 - Improved error handling in HSSFWorkbook when attempting to read a BIFF5 file
........
r653125 | josh | 2008-05-03 21:13:56 +0100 (Sat, 03 May 2008) | 1 line
Swapped ArrayIndexOutOfBoundsException for plain array length check in AbstractFunctionPtg.getParameterClass(). (To help debugging when trying to find a real AIOOB)
........
r653484 | yegor | 2008-05-05 14:59:11 +0100 (Mon, 05 May 2008) | 1 line
take into account indentation in HSSFSheet.autosizeColumn
........
r653485 | yegor | 2008-05-05 14:59:38 +0100 (Mon, 05 May 2008) | 1 line
take into account indentation in HSSFSheet.autosizeColumn
........
r653486 | yegor | 2008-05-05 15:00:30 +0100 (Mon, 05 May 2008) | 1 line
getting ready to 3.1-beta2
........
r653520 | yegor | 2008-05-05 17:12:21 +0100 (Mon, 05 May 2008) | 1 line
bug #44235 is not reproducible in 3.1-beta1
........
r653521 | yegor | 2008-05-05 17:13:24 +0100 (Mon, 05 May 2008) | 1 line
restored mistakenly commented line
........
r653551 | josh | 2008-05-05 19:30:49 +0100 (Mon, 05 May 2008) | 1 line
Added test case method javadoc for old bug 44675
........
r653608 | josh | 2008-05-05 22:38:07 +0100 (Mon, 05 May 2008) | 1 line
Follow-on from 28754 - StringPtg.toFormulaString() should escape double quotes
........
r653668 | josh | 2008-05-06 03:02:41 +0100 (Tue, 06 May 2008) | 1 line
42564 - fixed ArrayPtg to use ConstantValueParser. Fixed a few other ArrayPtg encoding issues.
........
r653675 | josh | 2008-05-06 04:57:15 +0100 (Tue, 06 May 2008) | 1 line
42570 - fixed LabelRecord to use empty string instead of null when the length is zero.
........
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@653822 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 12:00:36 -04:00
|
|
|
{
|
|
|
|
addCluster(dgId, numShapedUsed, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Add a new cluster
|
|
|
|
*
|
|
|
|
* @param dgId id of the drawing group (stored in the record options)
|
|
|
|
* @param numShapedUsed initial value of the numShapedUsed field
|
|
|
|
* @param sort if true then sort clusters by drawing group id.(
|
|
|
|
* In Excel the clusters are sorted but in PPT they are not)
|
|
|
|
*/
|
|
|
|
public void addCluster( int dgId, int numShapedUsed, boolean sort )
|
2004-04-09 07:45:38 -04:00
|
|
|
{
|
|
|
|
List clusters = new ArrayList(Arrays.asList(field_5_fileIdClusters));
|
|
|
|
clusters.add(new FileIdCluster(dgId, numShapedUsed));
|
Merged revisions 638786-638802,638805-638811,638813-638814,638816-639230,639233-639241,639243-639253,639255-639486,639488-639601,639603-639835,639837-639917,639919-640056,640058-640710,640712-641156,641158-641184,641186-641795,641797-641798,641800-641933,641935-641963,641965-641966,641968-641995,641997-642230,642232-642562,642564-642565,642568-642570,642572-642573,642576-642736,642739-642877,642879,642881-642890,642892-642903,642905-642945,642947-643624,643626-643653,643655-643669,643671,643673-643830,643832-643833,643835-644342,644344-644472,644474-644508,644510-645347,645349-645351,645353-645559,645561-645565,645568-645951,645953-646193,646195-646311,646313-646404,646406-646665,646667-646853,646855-646869,646871-647151,647153-647185,647187-647277,647279-647566,647568-647573,647575,647578-647711,647714-647737,647739-647823,647825-648155,648157-648202,648204-648273,648275,648277-648302,648304-648333,648335-648588,648590-648622,648625-648673,648675-649141,649144,649146-649556,649558-649795,649799,649801-649910,649912-649913,649915-650128,650131-650132,650134-650137,650140-650914,650916-653812 via svnmerge from
https://svn.apache.org:443/repos/asf/poi/trunk
........
r651992 | nick | 2008-04-27 19:02:13 +0100 (Sun, 27 Apr 2008) | 1 line
Fix from Trejkaz from bug #44857 - Avoid OOM on unknown escher records when EscherMetafileBlip is incorrect
........
r652285 | yegor | 2008-04-30 07:18:05 +0100 (Wed, 30 Apr 2008) | 1 line
start a new section for 3.1-beta2
........
r652288 | yegor | 2008-04-30 07:19:38 +0100 (Wed, 30 Apr 2008) | 1 line
correctly process PICT blips (see bug #44886)
........
r652290 | yegor | 2008-04-30 07:21:04 +0100 (Wed, 30 Apr 2008) | 1 line
more flexible creation of a cluster
........
r652292 | yegor | 2008-04-30 07:22:02 +0100 (Wed, 30 Apr 2008) | 1 line
a few more words in the release guide
........
r652298 | yegor | 2008-04-30 07:29:11 +0100 (Wed, 30 Apr 2008) | 1 line
more work on rendering ppt slides
........
r652329 | nick | 2008-04-30 12:10:49 +0100 (Wed, 30 Apr 2008) | 1 line
Tests to show that bugs 44891 and 44861 were both already fixed
........
r652426 | josh | 2008-05-01 04:25:37 +0100 (Thu, 01 May 2008) | 1 line
fixed bug 44892 - made HSSFWorkbook.getSheet(String) case insensitive
........
r652446 | josh | 2008-05-01 08:42:18 +0100 (Thu, 01 May 2008) | 1 line
44914 - Fix/suppress warning message - WARN. Unread n bytes of record 0xNN
........
r652561 | josh | 2008-05-01 16:46:21 +0100 (Thu, 01 May 2008) | 1 line
added disabled junit for bug 44916
........
r652934 | josh | 2008-05-02 23:36:49 +0100 (Fri, 02 May 2008) | 1 line
44921 - allow Ptg.writeBytes() to be called on relative ref Ptgs (RefN* and AreaN*)
........
r652936 | josh | 2008-05-02 23:49:38 +0100 (Fri, 02 May 2008) | 1 line
should have been submitted with r652934
........
r652994 | josh | 2008-05-03 04:59:32 +0100 (Sat, 03 May 2008) | 1 line
Fixed 44675 - Parameter operand classes (function metadata) required to encode SUM() etc properly. Added parse validation for number of parameters
........
r653117 | josh | 2008-05-03 20:53:38 +0100 (Sat, 03 May 2008) | 1 line
44929 - Improved error handling in HSSFWorkbook when attempting to read a BIFF5 file
........
r653125 | josh | 2008-05-03 21:13:56 +0100 (Sat, 03 May 2008) | 1 line
Swapped ArrayIndexOutOfBoundsException for plain array length check in AbstractFunctionPtg.getParameterClass(). (To help debugging when trying to find a real AIOOB)
........
r653484 | yegor | 2008-05-05 14:59:11 +0100 (Mon, 05 May 2008) | 1 line
take into account indentation in HSSFSheet.autosizeColumn
........
r653485 | yegor | 2008-05-05 14:59:38 +0100 (Mon, 05 May 2008) | 1 line
take into account indentation in HSSFSheet.autosizeColumn
........
r653486 | yegor | 2008-05-05 15:00:30 +0100 (Mon, 05 May 2008) | 1 line
getting ready to 3.1-beta2
........
r653520 | yegor | 2008-05-05 17:12:21 +0100 (Mon, 05 May 2008) | 1 line
bug #44235 is not reproducible in 3.1-beta1
........
r653521 | yegor | 2008-05-05 17:13:24 +0100 (Mon, 05 May 2008) | 1 line
restored mistakenly commented line
........
r653551 | josh | 2008-05-05 19:30:49 +0100 (Mon, 05 May 2008) | 1 line
Added test case method javadoc for old bug 44675
........
r653608 | josh | 2008-05-05 22:38:07 +0100 (Mon, 05 May 2008) | 1 line
Follow-on from 28754 - StringPtg.toFormulaString() should escape double quotes
........
r653668 | josh | 2008-05-06 03:02:41 +0100 (Tue, 06 May 2008) | 1 line
42564 - fixed ArrayPtg to use ConstantValueParser. Fixed a few other ArrayPtg encoding issues.
........
r653675 | josh | 2008-05-06 04:57:15 +0100 (Tue, 06 May 2008) | 1 line
42570 - fixed LabelRecord to use empty string instead of null when the length is zero.
........
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@653822 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 12:00:36 -04:00
|
|
|
if(sort) Collections.sort(clusters, new Comparator()
|
2004-04-09 07:45:38 -04:00
|
|
|
{
|
|
|
|
public int compare( Object o1, Object o2 )
|
|
|
|
{
|
|
|
|
FileIdCluster f1 = (FileIdCluster) o1;
|
|
|
|
FileIdCluster f2 = (FileIdCluster) o2;
|
|
|
|
if (f1.getDrawingGroupId() == f2.getDrawingGroupId())
|
|
|
|
return 0;
|
|
|
|
if (f1.getDrawingGroupId() < f2.getDrawingGroupId())
|
|
|
|
return -1;
|
|
|
|
else
|
|
|
|
return +1;
|
|
|
|
}
|
|
|
|
} );
|
Merged revisions 638786-638802,638805-638811,638813-638814,638816-639230,639233-639241,639243-639253,639255-639486,639488-639601,639603-639835,639837-639917,639919-640056,640058-640710,640712-641156,641158-641184,641186-641795,641797-641798,641800-641933,641935-641963,641965-641966,641968-641995,641997-642230,642232-642562,642564-642565,642568-642570,642572-642573,642576-642736,642739-642877,642879,642881-642890,642892-642903,642905-642945,642947-643624,643626-643653,643655-643669,643671,643673-643830,643832-643833,643835-644342,644344-644472,644474-644508,644510-645347,645349-645351,645353-645559,645561-645565,645568-645951,645953-646193,646195-646311,646313-646404,646406-646665,646667-646853,646855-646869,646871-647151,647153-647185,647187-647277,647279-647566,647568-647573,647575,647578-647711,647714-647737,647739-647823,647825-648155,648157-648202,648204-648273,648275,648277-648302,648304-648333,648335-648588,648590-648622,648625-648673,648675-649141,649144,649146-649556,649558-649795,649799,649801-649910,649912-649913,649915-650128,650131-650132,650134-650137,650140-650914,650916-653812 via svnmerge from
https://svn.apache.org:443/repos/asf/poi/trunk
........
r651992 | nick | 2008-04-27 19:02:13 +0100 (Sun, 27 Apr 2008) | 1 line
Fix from Trejkaz from bug #44857 - Avoid OOM on unknown escher records when EscherMetafileBlip is incorrect
........
r652285 | yegor | 2008-04-30 07:18:05 +0100 (Wed, 30 Apr 2008) | 1 line
start a new section for 3.1-beta2
........
r652288 | yegor | 2008-04-30 07:19:38 +0100 (Wed, 30 Apr 2008) | 1 line
correctly process PICT blips (see bug #44886)
........
r652290 | yegor | 2008-04-30 07:21:04 +0100 (Wed, 30 Apr 2008) | 1 line
more flexible creation of a cluster
........
r652292 | yegor | 2008-04-30 07:22:02 +0100 (Wed, 30 Apr 2008) | 1 line
a few more words in the release guide
........
r652298 | yegor | 2008-04-30 07:29:11 +0100 (Wed, 30 Apr 2008) | 1 line
more work on rendering ppt slides
........
r652329 | nick | 2008-04-30 12:10:49 +0100 (Wed, 30 Apr 2008) | 1 line
Tests to show that bugs 44891 and 44861 were both already fixed
........
r652426 | josh | 2008-05-01 04:25:37 +0100 (Thu, 01 May 2008) | 1 line
fixed bug 44892 - made HSSFWorkbook.getSheet(String) case insensitive
........
r652446 | josh | 2008-05-01 08:42:18 +0100 (Thu, 01 May 2008) | 1 line
44914 - Fix/suppress warning message - WARN. Unread n bytes of record 0xNN
........
r652561 | josh | 2008-05-01 16:46:21 +0100 (Thu, 01 May 2008) | 1 line
added disabled junit for bug 44916
........
r652934 | josh | 2008-05-02 23:36:49 +0100 (Fri, 02 May 2008) | 1 line
44921 - allow Ptg.writeBytes() to be called on relative ref Ptgs (RefN* and AreaN*)
........
r652936 | josh | 2008-05-02 23:49:38 +0100 (Fri, 02 May 2008) | 1 line
should have been submitted with r652934
........
r652994 | josh | 2008-05-03 04:59:32 +0100 (Sat, 03 May 2008) | 1 line
Fixed 44675 - Parameter operand classes (function metadata) required to encode SUM() etc properly. Added parse validation for number of parameters
........
r653117 | josh | 2008-05-03 20:53:38 +0100 (Sat, 03 May 2008) | 1 line
44929 - Improved error handling in HSSFWorkbook when attempting to read a BIFF5 file
........
r653125 | josh | 2008-05-03 21:13:56 +0100 (Sat, 03 May 2008) | 1 line
Swapped ArrayIndexOutOfBoundsException for plain array length check in AbstractFunctionPtg.getParameterClass(). (To help debugging when trying to find a real AIOOB)
........
r653484 | yegor | 2008-05-05 14:59:11 +0100 (Mon, 05 May 2008) | 1 line
take into account indentation in HSSFSheet.autosizeColumn
........
r653485 | yegor | 2008-05-05 14:59:38 +0100 (Mon, 05 May 2008) | 1 line
take into account indentation in HSSFSheet.autosizeColumn
........
r653486 | yegor | 2008-05-05 15:00:30 +0100 (Mon, 05 May 2008) | 1 line
getting ready to 3.1-beta2
........
r653520 | yegor | 2008-05-05 17:12:21 +0100 (Mon, 05 May 2008) | 1 line
bug #44235 is not reproducible in 3.1-beta1
........
r653521 | yegor | 2008-05-05 17:13:24 +0100 (Mon, 05 May 2008) | 1 line
restored mistakenly commented line
........
r653551 | josh | 2008-05-05 19:30:49 +0100 (Mon, 05 May 2008) | 1 line
Added test case method javadoc for old bug 44675
........
r653608 | josh | 2008-05-05 22:38:07 +0100 (Mon, 05 May 2008) | 1 line
Follow-on from 28754 - StringPtg.toFormulaString() should escape double quotes
........
r653668 | josh | 2008-05-06 03:02:41 +0100 (Tue, 06 May 2008) | 1 line
42564 - fixed ArrayPtg to use ConstantValueParser. Fixed a few other ArrayPtg encoding issues.
........
r653675 | josh | 2008-05-06 04:57:15 +0100 (Tue, 06 May 2008) | 1 line
42570 - fixed LabelRecord to use empty string instead of null when the length is zero.
........
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@653822 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 12:00:36 -04:00
|
|
|
maxDgId = Math.min(maxDgId, dgId);
|
2004-04-09 07:45:38 -04:00
|
|
|
field_5_fileIdClusters = (FileIdCluster[]) clusters.toArray( new FileIdCluster[clusters.size()] );
|
|
|
|
}
|
|
|
|
}
|