import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
-import java.util.Arrays;
+import java.util.Collections;
import java.util.List;
import java.util.zip.InflaterInputStream;
private PICF _picf;
private PICFAndOfficeArtData _picfAndOfficeArtData;
- private List<? extends EscherRecord> _blipRecords;
+ private final List<? extends EscherRecord> _blipRecords;
private byte[] content;
private int dataBlockStartOfsset;
*/
public Picture( EscherBlipRecord blipRecord )
{
- this._blipRecords = Arrays.asList(new EscherBlipRecord[] {blipRecord});
+ this._blipRecords = Collections.singletonList(blipRecord);
}
/**
this.dataBlockStartOfsset = dataBlockStartOfsset;
if ( _picfAndOfficeArtData != null && _picfAndOfficeArtData.getBlipRecords() != null) {
- _blipRecords = _picfAndOfficeArtData.getBlipRecords();
+ _blipRecords = _picfAndOfficeArtData.getBlipRecords();
+ } else {
+ _blipRecords = Collections.emptyList();
}
if ( fillBytes ) {