Line 0
Link Here
|
|
|
1 |
/* ==================================================================== |
2 |
Licensed to the Apache Software Foundation (ASF) under one or more |
3 |
contributor license agreements. See the NOTICE file distributed with |
4 |
this work for additional information regarding copyright ownership. |
5 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
6 |
(the "License"); you may not use this file except in compliance with |
7 |
the License. You may obtain a copy of the License at |
8 |
|
9 |
http://www.apache.org/licenses/LICENSE-2.0 |
10 |
|
11 |
Unless required by applicable law or agreed to in writing, software |
12 |
distributed under the License is distributed on an "AS IS" BASIS, |
13 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 |
See the License for the specific language governing permissions and |
15 |
limitations under the License. |
16 |
==================================================================== */ |
17 |
package org.apache.poi.xssf.streaming.reader; |
18 |
|
19 |
import java.util.ArrayList; |
20 |
import java.util.Collection; |
21 |
import java.util.Iterator; |
22 |
import java.util.List; |
23 |
import java.util.Map; |
24 |
|
25 |
import javax.xml.stream.XMLEventReader; |
26 |
import javax.xml.stream.XMLStreamException; |
27 |
import javax.xml.stream.events.XMLEvent; |
28 |
|
29 |
import org.apache.poi.ss.usermodel.AutoFilter; |
30 |
import org.apache.poi.ss.usermodel.Cell; |
31 |
import org.apache.poi.ss.usermodel.CellRange; |
32 |
import org.apache.poi.ss.usermodel.CellStyle; |
33 |
import org.apache.poi.ss.usermodel.Comment; |
34 |
import org.apache.poi.ss.usermodel.DataValidation; |
35 |
import org.apache.poi.ss.usermodel.DataValidationHelper; |
36 |
import org.apache.poi.ss.usermodel.Drawing; |
37 |
import org.apache.poi.ss.usermodel.Footer; |
38 |
import org.apache.poi.ss.usermodel.Header; |
39 |
import org.apache.poi.ss.usermodel.Hyperlink; |
40 |
import org.apache.poi.ss.usermodel.PrintSetup; |
41 |
import org.apache.poi.ss.usermodel.Row; |
42 |
import org.apache.poi.ss.usermodel.Sheet; |
43 |
import org.apache.poi.ss.usermodel.SheetConditionalFormatting; |
44 |
import org.apache.poi.ss.usermodel.Workbook; |
45 |
import org.apache.poi.ss.util.CellAddress; |
46 |
import org.apache.poi.ss.util.CellRangeAddress; |
47 |
import org.apache.poi.ss.util.PaneInformation; |
48 |
import org.apache.poi.util.NotImplemented; |
49 |
import org.apache.poi.xssf.model.SharedStringsTable; |
50 |
import org.apache.poi.xssf.model.StylesTable; |
51 |
|
52 |
/** |
53 |
* Represents an excel sheet. |
54 |
* StreamedSheet currently supports only the minimal functionalities as |
55 |
* additional features requires caching of sheet data, which consumes memory. |
56 |
* |
57 |
*/ |
58 |
public class StreamedSheet implements Sheet{ |
59 |
private XMLEventReader xmlParser; |
60 |
private SharedStringsTable sharedStringsTable; |
61 |
private StylesTable stylesTable; |
62 |
private int numberOfColumns; |
63 |
private int sheetNumber; |
64 |
private String sheetName; |
65 |
private StreamedSheetEventHandler eventHandler = null; |
66 |
|
67 |
/** |
68 |
* <pre> |
69 |
* Fetch all rows from the excel. |
70 |
* </pre> |
71 |
* |
72 |
* This method consumes only less memory, but it is |
73 |
* advisable to use it only for small excel files, since |
74 |
* it will fetch all rows in a single call. |
75 |
* |
76 |
* @return Iterator<Row> |
77 |
* @throws XMLStreamException |
78 |
*/ |
79 |
public Iterator<StreamedRow> getAllRows() throws XMLStreamException{ |
80 |
return getAllRows(this, sharedStringsTable, stylesTable); |
81 |
} |
82 |
|
83 |
/** |
84 |
* <pre> |
85 |
* Used to fetch N number of rows. |
86 |
* </pre> |
87 |
* |
88 |
* Recommended method to reduce memory utilization. |
89 |
* It allows to read big excel files in batch. |
90 |
* This gives control to the user to process the records already fetched, |
91 |
* before fetching next set of records. |
92 |
* After reading N records, invoke the same method with number of rows to be |
93 |
* fetched to get the next set of rows. |
94 |
* <br> |
95 |
* |
96 |
* *********************Usage**************************** |
97 |
* Iterator<StreamedRow> rows = sheet.getNRows(1); |
98 |
* <br> |
99 |
* while(rows.hasNext()){ //read the first 1 row |
100 |
* <br> |
101 |
* StreamedRow row = rows.next(); |
102 |
* <br> |
103 |
* } |
104 |
* <br> |
105 |
* rows = sheet.getNRows(10); |
106 |
* <br> |
107 |
* while(rows.hasNext()){ //read the next 10 rows |
108 |
* <br> |
109 |
* StreamedRow row = rows.next(); |
110 |
* <br> |
111 |
* } |
112 |
* |
113 |
* @param numberOfRows |
114 |
* @return Iterator<Row> |
115 |
* @throws XMLStreamException |
116 |
*/ |
117 |
public Iterator<StreamedRow> getNRows(int numberOfRows) throws XMLStreamException{ |
118 |
return getNRows(this, eventHandler, numberOfRows); |
119 |
} |
120 |
|
121 |
public boolean hasMoreRows(){ |
122 |
return xmlParser.hasNext(); |
123 |
} |
124 |
|
125 |
|
126 |
public XMLEventReader getXmlParser() { |
127 |
return xmlParser; |
128 |
} |
129 |
|
130 |
public void setXmlParser(XMLEventReader xmlParser) { |
131 |
this.xmlParser = xmlParser; |
132 |
} |
133 |
|
134 |
public void setSharedStringsTable(SharedStringsTable sharedStringsTable) { |
135 |
this.sharedStringsTable = sharedStringsTable; |
136 |
} |
137 |
|
138 |
public void setStylesTable(StylesTable stylesTable) { |
139 |
this.stylesTable = stylesTable; |
140 |
} |
141 |
|
142 |
public void createEventHandler(){ |
143 |
eventHandler = new StreamedSheetEventHandler(sharedStringsTable, stylesTable); |
144 |
} |
145 |
|
146 |
|
147 |
public int getNumberOfColumns() { |
148 |
return numberOfColumns; |
149 |
} |
150 |
|
151 |
|
152 |
public void setNumberOfColumns(int numberOfColumns) { |
153 |
this.numberOfColumns = numberOfColumns; |
154 |
} |
155 |
|
156 |
|
157 |
public int getSheetNumber() { |
158 |
return sheetNumber; |
159 |
} |
160 |
|
161 |
|
162 |
public void setSheetNumber(int sheetNumber) { |
163 |
this.sheetNumber = sheetNumber; |
164 |
} |
165 |
|
166 |
/* @Override |
167 |
protected void finalize() throws Throwable { |
168 |
super.finalize(); |
169 |
|
170 |
xmlParser = null; |
171 |
sharedStringsTable = null; |
172 |
stylesTable = null; |
173 |
eventHandler = null; |
174 |
|
175 |
}*/ |
176 |
|
177 |
/** |
178 |
* reads all data from sheet |
179 |
* @param xmlParser |
180 |
* @param sharedStringsTable |
181 |
* @param stylesTable |
182 |
* @return |
183 |
* @throws XMLStreamException |
184 |
*/ |
185 |
private Iterator<StreamedRow> getAllRows(StreamedSheet sheet, |
186 |
SharedStringsTable sharedStringsTable, StylesTable stylesTable) throws XMLStreamException { |
187 |
List<StreamedRow> dataList = new ArrayList<StreamedRow>(); |
188 |
StreamedSheetEventHandler eventHandler = new StreamedSheetEventHandler(sharedStringsTable, stylesTable); |
189 |
while(sheet.getXmlParser().hasNext()){ |
190 |
XMLEvent event = sheet.getXmlParser().nextEvent(); |
191 |
eventHandler.handleEvent(event); |
192 |
if(eventHandler.isEndOfRow()){ |
193 |
dataList.add(eventHandler.getRow()); |
194 |
eventHandler.setEndOfRow(false); |
195 |
} |
196 |
sheet.setNumberOfColumns(eventHandler.getNumberOfColumns()); |
197 |
} |
198 |
|
199 |
return dataList.iterator(); |
200 |
} |
201 |
|
202 |
/** |
203 |
* Reads N Rows from excel |
204 |
* @param sheet |
205 |
* @param sharedStringsTable |
206 |
* @param stylesTable |
207 |
* @param numberOFRows |
208 |
* @return |
209 |
* @throws XMLStreamException |
210 |
*/ |
211 |
private Iterator<StreamedRow> getNRows(StreamedSheet sheet, StreamedSheetEventHandler eventHandler, int numberOfRows) |
212 |
throws XMLStreamException { |
213 |
List<StreamedRow> dataList = new ArrayList<StreamedRow>(); |
214 |
while(sheet.getXmlParser().hasNext()){ |
215 |
XMLEvent event = sheet.getXmlParser().nextEvent(); |
216 |
eventHandler.handleEvent(event); |
217 |
if(eventHandler.isEndOfRow()){ |
218 |
dataList.add(eventHandler.getRow()); |
219 |
eventHandler.setEndOfRow(false); |
220 |
} |
221 |
sheet.setNumberOfColumns(eventHandler.getNumberOfColumns()); |
222 |
if(dataList.size() == numberOfRows){ |
223 |
break; |
224 |
} |
225 |
} |
226 |
|
227 |
return dataList.iterator(); |
228 |
} |
229 |
|
230 |
/** |
231 |
* Not supported. Refer getAllRows or getNRows |
232 |
* @exception UnsupportedOperationException |
233 |
*/ |
234 |
@NotImplemented |
235 |
public Iterator<Row> iterator() { |
236 |
throw new UnsupportedOperationException("Not supported. Refer getAllRows or getNRows"); |
237 |
} |
238 |
|
239 |
/** |
240 |
* <pre> |
241 |
* Not supported right now, as StreamedWorkbook |
242 |
* supports only reading. |
243 |
* </pre> |
244 |
* @exception UnsupportedOperationException |
245 |
*/ |
246 |
@NotImplemented |
247 |
public Row createRow(int rownum) { |
248 |
throw new UnsupportedOperationException("Operation not supported."); |
249 |
} |
250 |
|
251 |
/** |
252 |
* <pre> |
253 |
* Not supported right now, as StreamedWorkbook |
254 |
* supports only reading. |
255 |
* </pre> |
256 |
* @exception UnsupportedOperationException |
257 |
*/ |
258 |
@NotImplemented |
259 |
public void removeRow(Row row) { |
260 |
throw new UnsupportedOperationException("Operation not supported."); |
261 |
} |
262 |
|
263 |
/** |
264 |
* <pre> |
265 |
* Not supported due to memory footprint. |
266 |
* </pre> |
267 |
* @exception UnsupportedOperationException |
268 |
*/ |
269 |
@NotImplemented |
270 |
public Row getRow(int rownum) { |
271 |
throw new UnsupportedOperationException("Operation not supported."); |
272 |
} |
273 |
|
274 |
/** |
275 |
* <pre> |
276 |
* Not supported due to memory footprint. |
277 |
* </pre> |
278 |
* @exception UnsupportedOperationException |
279 |
*/ |
280 |
@NotImplemented |
281 |
public int getPhysicalNumberOfRows() { |
282 |
throw new UnsupportedOperationException("Operation not supported."); |
283 |
} |
284 |
|
285 |
/** |
286 |
* <pre> |
287 |
* Will be supported in the future. |
288 |
* </pre> |
289 |
* @exception UnsupportedOperationException |
290 |
*/ |
291 |
@NotImplemented |
292 |
public int getFirstRowNum() { |
293 |
throw new UnsupportedOperationException("Not yet implemented."); |
294 |
} |
295 |
|
296 |
/** |
297 |
* <pre> |
298 |
* Not supported due to memory footprint. |
299 |
* </pre> |
300 |
* @exception UnsupportedOperationException |
301 |
*/ |
302 |
@NotImplemented |
303 |
public int getLastRowNum() { |
304 |
throw new UnsupportedOperationException("Operation not supported."); |
305 |
} |
306 |
|
307 |
/** |
308 |
* <pre> |
309 |
* Not supported right now, as StreamedWorkbook |
310 |
* supports only reading. |
311 |
* </pre> |
312 |
* @exception UnsupportedOperationException |
313 |
* |
314 |
*/ |
315 |
@NotImplemented |
316 |
public void setColumnHidden(int columnIndex, boolean hidden) { |
317 |
throw new UnsupportedOperationException("Operation not supported."); |
318 |
} |
319 |
|
320 |
/** |
321 |
* <pre> |
322 |
* Not supported due to memory footprint. |
323 |
* </pre> |
324 |
* @exception UnsupportedOperationException |
325 |
*/ |
326 |
@NotImplemented |
327 |
public boolean isColumnHidden(int columnIndex) { |
328 |
throw new UnsupportedOperationException("Operation not supported."); |
329 |
} |
330 |
|
331 |
/** |
332 |
* <pre> |
333 |
* Not supported right now, as StreamedWorkbook |
334 |
* supports only reading. |
335 |
* </pre> |
336 |
* @exception UnsupportedOperationException |
337 |
* |
338 |
*/ |
339 |
@NotImplemented |
340 |
public void setRightToLeft(boolean value) { |
341 |
throw new UnsupportedOperationException("Operation not supported."); |
342 |
} |
343 |
|
344 |
/** |
345 |
* <pre> |
346 |
* Not supported right now, as StreamedWorkbook |
347 |
* supports only reading. |
348 |
* </pre> |
349 |
* @exception UnsupportedOperationException |
350 |
*/ |
351 |
@NotImplemented |
352 |
public boolean isRightToLeft() { |
353 |
throw new UnsupportedOperationException("Operation not supported."); |
354 |
} |
355 |
|
356 |
/** |
357 |
* <pre> |
358 |
* Not supported right now, as StreamedWorkbook |
359 |
* supports only reading. |
360 |
* </pre> |
361 |
* @exception UnsupportedOperationException |
362 |
*/ |
363 |
@NotImplemented |
364 |
public void setColumnWidth(int columnIndex, int width) { |
365 |
throw new UnsupportedOperationException("Operation not supported."); |
366 |
} |
367 |
|
368 |
/** |
369 |
* <pre> |
370 |
* Not supported due to memory footprint. |
371 |
* </pre> |
372 |
*/ |
373 |
@NotImplemented |
374 |
public int getColumnWidth(int columnIndex) { |
375 |
throw new UnsupportedOperationException("Operation not supported."); |
376 |
} |
377 |
|
378 |
|
379 |
/** |
380 |
* <pre> |
381 |
* Not supported due to memory footprint. |
382 |
* </pre> |
383 |
* @exception UnsupportedOperationException |
384 |
*/ |
385 |
@NotImplemented |
386 |
public float getColumnWidthInPixels(int columnIndex) { |
387 |
throw new UnsupportedOperationException("Operation not supported."); |
388 |
} |
389 |
|
390 |
/** |
391 |
* <pre> |
392 |
* Not supported right now, as StreamedWorkbook |
393 |
* supports only reading. |
394 |
* </pre> |
395 |
* @exception UnsupportedOperationException |
396 |
*/ |
397 |
@NotImplemented |
398 |
public void setDefaultColumnWidth(int width) { |
399 |
throw new UnsupportedOperationException("Operation not supported."); |
400 |
} |
401 |
|
402 |
/** |
403 |
* <pre> |
404 |
* Not supported due to memory footprint. |
405 |
* </pre> |
406 |
* @exception UnsupportedOperationException |
407 |
*/ |
408 |
@NotImplemented |
409 |
public int getDefaultColumnWidth() { |
410 |
throw new UnsupportedOperationException("Operation not supported."); |
411 |
} |
412 |
|
413 |
/** |
414 |
* <pre> |
415 |
* Not supported due to memory footprint. |
416 |
* </pre> |
417 |
* @exception UnsupportedOperationException |
418 |
*/ |
419 |
@NotImplemented |
420 |
public short getDefaultRowHeight() { |
421 |
throw new UnsupportedOperationException("Operation not supported."); |
422 |
} |
423 |
|
424 |
/** |
425 |
* <pre> |
426 |
* Not supported due to memory footprint. |
427 |
* </pre> |
428 |
* @exception UnsupportedOperationException |
429 |
*/ |
430 |
@NotImplemented |
431 |
public float getDefaultRowHeightInPoints() { |
432 |
throw new UnsupportedOperationException("Operation not supported."); |
433 |
} |
434 |
|
435 |
/** |
436 |
* <pre> |
437 |
* Not supported right now, as StreamedWorkbook |
438 |
* supports only reading. |
439 |
* </pre> |
440 |
* @exception UnsupportedOperationException |
441 |
* |
442 |
*/ |
443 |
@NotImplemented |
444 |
public void setDefaultRowHeight(short height) { |
445 |
throw new UnsupportedOperationException("Operation not supported."); |
446 |
} |
447 |
|
448 |
/** |
449 |
* <pre> |
450 |
* Not supported right now, as StreamedWorkbook |
451 |
* supports only reading. |
452 |
* </pre> |
453 |
* @exception UnsupportedOperationException |
454 |
* |
455 |
*/ |
456 |
public void setDefaultRowHeightInPoints(float height) { |
457 |
throw new UnsupportedOperationException("Operation not supported."); |
458 |
} |
459 |
|
460 |
/** |
461 |
* <pre> |
462 |
* Not supported due to memory footprint. |
463 |
* </pre> |
464 |
* @exception UnsupportedOperationException |
465 |
*/ |
466 |
@NotImplemented |
467 |
public CellStyle getColumnStyle(int column) { |
468 |
throw new UnsupportedOperationException("Operation not supported."); |
469 |
} |
470 |
|
471 |
/** |
472 |
* <pre> |
473 |
* Not supported right now, as StreamedWorkbook |
474 |
* supports only reading. |
475 |
* </pre> |
476 |
* @exception UnsupportedOperationException |
477 |
* |
478 |
*/ |
479 |
@NotImplemented |
480 |
public int addMergedRegion(CellRangeAddress region) { |
481 |
throw new UnsupportedOperationException("Operation not supported."); |
482 |
} |
483 |
|
484 |
/** |
485 |
* <pre> |
486 |
* Not supported right now, as StreamedWorkbook |
487 |
* supports only reading. |
488 |
* </pre> |
489 |
* @exception UnsupportedOperationException |
490 |
* |
491 |
*/ |
492 |
@NotImplemented |
493 |
public int addMergedRegionUnsafe(CellRangeAddress region) { |
494 |
throw new UnsupportedOperationException("Operation not supported."); |
495 |
} |
496 |
|
497 |
/** |
498 |
* <pre> |
499 |
* Not supported due to memory footprint. |
500 |
* </pre> |
501 |
* @exception UnsupportedOperationException |
502 |
*/ |
503 |
@NotImplemented |
504 |
public void validateMergedRegions() { |
505 |
throw new UnsupportedOperationException("Operation not supported."); |
506 |
} |
507 |
|
508 |
/** |
509 |
* <pre> |
510 |
* Not supported right now, as StreamedWorkbook |
511 |
* supports only reading. |
512 |
* </pre> |
513 |
* @exception UnsupportedOperationException |
514 |
* |
515 |
*/ |
516 |
@NotImplemented |
517 |
public void setVerticallyCenter(boolean value) { |
518 |
throw new UnsupportedOperationException("Operation not supported."); |
519 |
} |
520 |
|
521 |
/** |
522 |
* <pre> |
523 |
* Not supported right now, as StreamedWorkbook |
524 |
* supports only reading. |
525 |
* </pre> |
526 |
* @exception UnsupportedOperationException |
527 |
*/ |
528 |
@NotImplemented |
529 |
public void setHorizontallyCenter(boolean value) { |
530 |
throw new UnsupportedOperationException("Operation not supported."); |
531 |
} |
532 |
|
533 |
/** |
534 |
* <pre> |
535 |
* Not supported due to memory footprint. |
536 |
* </pre> |
537 |
* @exception UnsupportedOperationException |
538 |
*/ |
539 |
@NotImplemented |
540 |
public boolean getHorizontallyCenter() { |
541 |
throw new UnsupportedOperationException("Operation not supported."); |
542 |
} |
543 |
|
544 |
/** |
545 |
* <pre> |
546 |
* Not supported due to memory footprint. |
547 |
* </pre> |
548 |
* @exception UnsupportedOperationException |
549 |
*/ |
550 |
@NotImplemented |
551 |
public boolean getVerticallyCenter() { |
552 |
throw new UnsupportedOperationException("Operation not supported."); |
553 |
} |
554 |
|
555 |
/** |
556 |
* <pre> |
557 |
* Not supported right now, as StreamedWorkbook |
558 |
* supports only reading. |
559 |
* </pre> |
560 |
* @exception UnsupportedOperationException |
561 |
* |
562 |
*/ |
563 |
@NotImplemented |
564 |
public void removeMergedRegion(int index) { |
565 |
throw new UnsupportedOperationException("Operation not supported."); |
566 |
} |
567 |
|
568 |
/** |
569 |
* <pre> |
570 |
* Not supported right now, as StreamedWorkbook |
571 |
* supports only reading. |
572 |
* </pre> |
573 |
* @exception UnsupportedOperationException |
574 |
* |
575 |
*/ |
576 |
@NotImplemented |
577 |
public void removeMergedRegions(Collection<Integer> indices) { |
578 |
throw new UnsupportedOperationException("Operation not supported."); |
579 |
} |
580 |
|
581 |
/** |
582 |
* <pre> |
583 |
* Not supported due to memory footprint. |
584 |
* </pre> |
585 |
* @exception UnsupportedOperationException |
586 |
*/ |
587 |
@NotImplemented |
588 |
public int getNumMergedRegions() { |
589 |
throw new UnsupportedOperationException("Operation not supported."); |
590 |
} |
591 |
|
592 |
/** |
593 |
* <pre> |
594 |
* Not supported due to memory footprint. |
595 |
* </pre> |
596 |
* @exception UnsupportedOperationException |
597 |
*/ |
598 |
public CellRangeAddress getMergedRegion(int index) { |
599 |
throw new UnsupportedOperationException("Operation not supported."); |
600 |
} |
601 |
|
602 |
/** |
603 |
* <pre> |
604 |
* Not supported due to memory footprint. |
605 |
* </pre> |
606 |
* @exception UnsupportedOperationException |
607 |
*/ |
608 |
@NotImplemented |
609 |
public List<CellRangeAddress> getMergedRegions() { |
610 |
throw new UnsupportedOperationException("Operation not supported."); |
611 |
} |
612 |
|
613 |
/** |
614 |
* <pre> |
615 |
* Not supported. Use getAllRows or getNRows |
616 |
* </pre> |
617 |
* @exception UnsupportedOperationException |
618 |
*/ |
619 |
@NotImplemented |
620 |
public Iterator<Row> rowIterator() { |
621 |
throw new UnsupportedOperationException("Operation not supported.Use getAllRows or getNRows."); |
622 |
} |
623 |
|
624 |
/** |
625 |
* <pre> |
626 |
* Not supported right now, as StreamedWorkbook |
627 |
* supports only reading. |
628 |
* </pre> |
629 |
* @exception UnsupportedOperationException |
630 |
* |
631 |
*/ |
632 |
public void setForceFormulaRecalculation(boolean value) { |
633 |
throw new UnsupportedOperationException("Operation not supported."); |
634 |
} |
635 |
|
636 |
/** |
637 |
* <pre> |
638 |
* Not supported due to memory footprint. |
639 |
* </pre> |
640 |
* @exception UnsupportedOperationException |
641 |
*/ |
642 |
@NotImplemented |
643 |
public boolean getForceFormulaRecalculation() { |
644 |
throw new UnsupportedOperationException("Operation not supported."); |
645 |
} |
646 |
|
647 |
/** |
648 |
* <pre> |
649 |
* Not supported right now, as StreamedWorkbook |
650 |
* supports only reading. |
651 |
* </pre> |
652 |
* @exception UnsupportedOperationException |
653 |
*/ |
654 |
@NotImplemented |
655 |
public void setAutobreaks(boolean value) { |
656 |
throw new UnsupportedOperationException("Operation not supported."); |
657 |
} |
658 |
|
659 |
/** |
660 |
* <pre> |
661 |
* Not supported right now, as StreamedWorkbook |
662 |
* supports only reading. |
663 |
* </pre> |
664 |
* @exception UnsupportedOperationException |
665 |
*/ |
666 |
@NotImplemented |
667 |
public void setDisplayGuts(boolean value) { |
668 |
throw new UnsupportedOperationException("Operation not supported."); |
669 |
} |
670 |
|
671 |
/** |
672 |
* <pre> |
673 |
* Not supported right now, as StreamedWorkbook |
674 |
* supports only reading. |
675 |
* </pre> |
676 |
* @exception UnsupportedOperationException |
677 |
*/ |
678 |
@NotImplemented |
679 |
public void setDisplayZeros(boolean value) { |
680 |
throw new UnsupportedOperationException("Operation not supported."); |
681 |
} |
682 |
|
683 |
/** |
684 |
* <pre> |
685 |
* Not supported due to memory footprint. |
686 |
* </pre> |
687 |
* @exception UnsupportedOperationException |
688 |
*/ |
689 |
@NotImplemented |
690 |
public boolean isDisplayZeros() { |
691 |
throw new UnsupportedOperationException("Operation not supported."); |
692 |
} |
693 |
|
694 |
/** |
695 |
* <pre> |
696 |
* Not supported right now, as StreamedWorkbook |
697 |
* supports only reading. |
698 |
* </pre> |
699 |
* @exception UnsupportedOperationException |
700 |
*/ |
701 |
@NotImplemented |
702 |
public void setFitToPage(boolean value) { |
703 |
throw new UnsupportedOperationException("Operation not supported."); |
704 |
} |
705 |
|
706 |
/** |
707 |
* <pre> |
708 |
* Not supported right now, as StreamedWorkbook |
709 |
* supports only reading. |
710 |
* </pre> |
711 |
* @exception UnsupportedOperationException |
712 |
*/ |
713 |
@NotImplemented |
714 |
public void setRowSumsBelow(boolean value) { |
715 |
throw new UnsupportedOperationException("Operation not supported."); |
716 |
} |
717 |
|
718 |
/** |
719 |
* <pre> |
720 |
* Not supported right now, as StreamedWorkbook |
721 |
* supports only reading. |
722 |
* </pre> |
723 |
* @exception UnsupportedOperationException |
724 |
*/ |
725 |
@NotImplemented |
726 |
public void setRowSumsRight(boolean value) { |
727 |
throw new UnsupportedOperationException("Operation not supported."); |
728 |
} |
729 |
|
730 |
/** |
731 |
* <pre> |
732 |
* Not supported due to memory footprint. |
733 |
* </pre> |
734 |
* @exception UnsupportedOperationException |
735 |
*/ |
736 |
@NotImplemented |
737 |
public boolean getAutobreaks() { |
738 |
throw new UnsupportedOperationException("Operation not supported."); |
739 |
} |
740 |
|
741 |
/** |
742 |
* <pre> |
743 |
* Not supported due to memory footprint.. |
744 |
* </pre> |
745 |
*/ |
746 |
@NotImplemented |
747 |
public boolean getDisplayGuts() { |
748 |
throw new UnsupportedOperationException("Operation not supported."); |
749 |
} |
750 |
|
751 |
/** |
752 |
* <pre> |
753 |
* Not supported due to memory footprint. |
754 |
* </pre> |
755 |
* @exception UnsupportedOperationException |
756 |
*/ |
757 |
@NotImplemented |
758 |
public boolean getFitToPage() { |
759 |
throw new UnsupportedOperationException("Operation not supported."); |
760 |
} |
761 |
|
762 |
/** |
763 |
* <pre> |
764 |
* Not supported due to memory footprint. |
765 |
* </pre> |
766 |
* @exception UnsupportedOperationException |
767 |
*/ |
768 |
@NotImplemented |
769 |
public boolean getRowSumsBelow() { |
770 |
throw new UnsupportedOperationException("Operation not supported."); |
771 |
} |
772 |
|
773 |
/** |
774 |
* <pre> |
775 |
* Not supported due to memory footprint. |
776 |
* </pre> |
777 |
* @exception UnsupportedOperationException |
778 |
*/ |
779 |
@NotImplemented |
780 |
public boolean getRowSumsRight() { |
781 |
throw new UnsupportedOperationException("Operation not supported."); |
782 |
} |
783 |
|
784 |
/** |
785 |
* <pre> |
786 |
* Not supported due to memory footprint. |
787 |
* </pre> |
788 |
* @exception UnsupportedOperationException |
789 |
*/ |
790 |
@NotImplemented |
791 |
public boolean isPrintGridlines() { |
792 |
throw new UnsupportedOperationException("Operation not supported."); |
793 |
} |
794 |
|
795 |
/** |
796 |
* <pre> |
797 |
* Not supported right now, as StreamedWorkbook |
798 |
* supports only reading. |
799 |
* </pre> |
800 |
* @exception UnsupportedOperationException |
801 |
*/ |
802 |
@NotImplemented |
803 |
public void setPrintGridlines(boolean show) { |
804 |
throw new UnsupportedOperationException("Operation not supported."); |
805 |
} |
806 |
|
807 |
/** |
808 |
* <pre> |
809 |
* Not supported due to memory footprint. |
810 |
* </pre> |
811 |
* @exception UnsupportedOperationException |
812 |
*/ |
813 |
@NotImplemented |
814 |
public boolean isPrintRowAndColumnHeadings() { |
815 |
throw new UnsupportedOperationException("Operation not supported."); |
816 |
} |
817 |
|
818 |
/** |
819 |
* <pre> |
820 |
* Not supported right now, as StreamedWorkbook |
821 |
* supports only reading. |
822 |
* </pre> |
823 |
* @exception UnsupportedOperationException |
824 |
* |
825 |
*/ |
826 |
@NotImplemented |
827 |
public void setPrintRowAndColumnHeadings(boolean show) { |
828 |
throw new UnsupportedOperationException("Operation not supported."); |
829 |
} |
830 |
|
831 |
/** |
832 |
* <pre> |
833 |
* Not supported due to memory footprint. |
834 |
* </pre> |
835 |
* @exception UnsupportedOperationException |
836 |
*/ |
837 |
@NotImplemented |
838 |
public PrintSetup getPrintSetup() { |
839 |
throw new UnsupportedOperationException("Operation not supported."); |
840 |
} |
841 |
|
842 |
/** |
843 |
* <pre> |
844 |
* Will be supported in future. |
845 |
* </pre> |
846 |
* @exception UnsupportedOperationException |
847 |
*/ |
848 |
@NotImplemented |
849 |
public Header getHeader() { |
850 |
// <TO DO> |
851 |
throw new UnsupportedOperationException("Not implemented yet."); |
852 |
} |
853 |
|
854 |
/** |
855 |
* <pre> |
856 |
* Not supported due to memory footprint. |
857 |
* </pre> |
858 |
* @exception UnsupportedOperationException |
859 |
*/ |
860 |
@NotImplemented |
861 |
public Footer getFooter() { |
862 |
throw new UnsupportedOperationException("Operation not supported."); |
863 |
} |
864 |
|
865 |
/** |
866 |
* <pre> |
867 |
* Not supported right now, as StreamedWorkbook |
868 |
* supports only reading. |
869 |
* </pre> |
870 |
* @exception UnsupportedOperationException |
871 |
*/ |
872 |
@NotImplemented |
873 |
public void setSelected(boolean value) { |
874 |
throw new UnsupportedOperationException("Operation not supported."); |
875 |
} |
876 |
|
877 |
/** |
878 |
* <pre> |
879 |
* Not supported due to memory footprint. |
880 |
* </pre> |
881 |
* @exception UnsupportedOperationException |
882 |
*/ |
883 |
@NotImplemented |
884 |
public double getMargin(short margin) { |
885 |
throw new UnsupportedOperationException("Operation not supported."); |
886 |
} |
887 |
|
888 |
/** |
889 |
* <pre> |
890 |
* Not supported right now, as StreamedWorkbook |
891 |
* supports only reading. |
892 |
* </pre> |
893 |
* @exception UnsupportedOperationException |
894 |
* |
895 |
*/ |
896 |
@NotImplemented |
897 |
public void setMargin(short margin, double size) { |
898 |
throw new UnsupportedOperationException("Operation not supported."); |
899 |
} |
900 |
|
901 |
/** |
902 |
* <pre> |
903 |
* Not supported due to memory footprint. |
904 |
* </pre> |
905 |
* @exception UnsupportedOperationException |
906 |
*/ |
907 |
@NotImplemented |
908 |
public boolean getProtect() { |
909 |
throw new UnsupportedOperationException("Operation not supported."); |
910 |
} |
911 |
|
912 |
/** |
913 |
* <pre> |
914 |
* Not supported right now, as StreamedWorkbook |
915 |
* supports only reading. |
916 |
* </pre> |
917 |
* @exception UnsupportedOperationException |
918 |
* |
919 |
*/ |
920 |
@NotImplemented |
921 |
public void protectSheet(String password) { |
922 |
throw new UnsupportedOperationException("Operation not supported."); |
923 |
} |
924 |
|
925 |
/** |
926 |
* <pre> |
927 |
* Not supported due to memory footprint. |
928 |
* </pre> |
929 |
* @exception UnsupportedOperationException |
930 |
*/ |
931 |
@NotImplemented |
932 |
public boolean getScenarioProtect() { |
933 |
throw new UnsupportedOperationException("Operation not supported."); |
934 |
} |
935 |
|
936 |
/** |
937 |
* <pre> |
938 |
* Not supported right now, as StreamedWorkbook |
939 |
* supports only reading. |
940 |
* </pre> |
941 |
* @exception UnsupportedOperationException |
942 |
* |
943 |
*/ |
944 |
@NotImplemented |
945 |
public void setZoom(int numerator, int denominator) { |
946 |
throw new UnsupportedOperationException("Operation not supported."); |
947 |
} |
948 |
|
949 |
/** |
950 |
* <pre> |
951 |
* Not supported right now, as StreamedWorkbook |
952 |
* supports only reading. |
953 |
* </pre> |
954 |
* @exception UnsupportedOperationException |
955 |
* |
956 |
*/ |
957 |
@NotImplemented |
958 |
public void setZoom(int scale) { |
959 |
throw new UnsupportedOperationException("Operation not supported."); |
960 |
} |
961 |
|
962 |
/** |
963 |
* <pre> |
964 |
* Will be supported in future. |
965 |
* </pre> |
966 |
* @exception UnsupportedOperationException |
967 |
*/ |
968 |
@NotImplemented |
969 |
public short getTopRow() { |
970 |
//<TO DO> |
971 |
throw new UnsupportedOperationException("Not implemented yet."); |
972 |
} |
973 |
|
974 |
/** |
975 |
* <pre> |
976 |
* Will be supported in future. |
977 |
* </pre> |
978 |
* @exception UnsupportedOperationException |
979 |
*/ |
980 |
public short getLeftCol() { |
981 |
//<TO DO> |
982 |
throw new UnsupportedOperationException("Not implemented yet."); |
983 |
} |
984 |
|
985 |
/** |
986 |
* <pre> |
987 |
* Not supported due to memory footprint. |
988 |
* </pre> |
989 |
* @exception UnsupportedOperationException |
990 |
*/ |
991 |
@NotImplemented |
992 |
public void showInPane(int toprow, int leftcol) { |
993 |
throw new UnsupportedOperationException("Operation not supported."); |
994 |
} |
995 |
|
996 |
/** |
997 |
* <pre> |
998 |
* Not supported right now, as StreamedWorkbook |
999 |
* supports only reading. |
1000 |
* </pre> |
1001 |
* @exception UnsupportedOperationException |
1002 |
* |
1003 |
*/ |
1004 |
@NotImplemented |
1005 |
public void shiftRows(int startRow, int endRow, int n) { |
1006 |
throw new UnsupportedOperationException("Operation not supported."); |
1007 |
} |
1008 |
|
1009 |
/** |
1010 |
* <pre> |
1011 |
* Not supported right now, as StreamedWorkbook |
1012 |
* supports only reading. |
1013 |
* </pre> |
1014 |
* @exception UnsupportedOperationException |
1015 |
* |
1016 |
*/ |
1017 |
@NotImplemented |
1018 |
public void shiftRows(int startRow, int endRow, int n, |
1019 |
boolean copyRowHeight, boolean resetOriginalRowHeight) { |
1020 |
throw new UnsupportedOperationException("Operation not supported."); |
1021 |
} |
1022 |
|
1023 |
/** |
1024 |
* <pre> |
1025 |
* Not supported right now, as StreamedWorkbook |
1026 |
* supports only reading. |
1027 |
* </pre> |
1028 |
* @exception UnsupportedOperationException |
1029 |
* |
1030 |
*/ |
1031 |
@NotImplemented |
1032 |
public void createFreezePane(int colSplit, int rowSplit, |
1033 |
int leftmostColumn, int topRow) { |
1034 |
throw new UnsupportedOperationException("Operation not supported."); |
1035 |
} |
1036 |
|
1037 |
/** |
1038 |
* <pre> |
1039 |
* Not supported right now, as StreamedWorkbook |
1040 |
* supports only reading. |
1041 |
* </pre> |
1042 |
* @exception UnsupportedOperationException |
1043 |
*/ |
1044 |
@NotImplemented |
1045 |
public void createFreezePane(int colSplit, int rowSplit) { |
1046 |
throw new UnsupportedOperationException("Operation not supported."); |
1047 |
} |
1048 |
|
1049 |
/** |
1050 |
* <pre> |
1051 |
* Not supported right now, as StreamedWorkbook |
1052 |
* supports only reading. |
1053 |
* </pre> |
1054 |
* @exception UnsupportedOperationException |
1055 |
*/ |
1056 |
@NotImplemented |
1057 |
public void createSplitPane(int xSplitPos, int ySplitPos, |
1058 |
int leftmostColumn, int topRow, int activePane) { |
1059 |
throw new UnsupportedOperationException("Operation not supported."); |
1060 |
} |
1061 |
|
1062 |
/** |
1063 |
* <pre> |
1064 |
* Not supported due to memory footprint. |
1065 |
* </pre> |
1066 |
* @exception UnsupportedOperationException |
1067 |
*/ |
1068 |
@NotImplemented |
1069 |
public PaneInformation getPaneInformation() { |
1070 |
throw new UnsupportedOperationException("Operation not supported."); |
1071 |
} |
1072 |
|
1073 |
/** |
1074 |
* <pre> |
1075 |
* Not supported right now, as StreamedWorkbook |
1076 |
* supports only reading. |
1077 |
* </pre> |
1078 |
* @exception UnsupportedOperationException |
1079 |
*/ |
1080 |
@NotImplemented |
1081 |
public void setDisplayGridlines(boolean show) { |
1082 |
throw new UnsupportedOperationException("Operation not supported."); |
1083 |
} |
1084 |
|
1085 |
/** |
1086 |
* <pre> |
1087 |
* Not supported due to memory footprint. |
1088 |
* </pre> |
1089 |
* @exception UnsupportedOperationException |
1090 |
*/ |
1091 |
@NotImplemented |
1092 |
public boolean isDisplayGridlines() { |
1093 |
throw new UnsupportedOperationException("Operation not supported."); |
1094 |
} |
1095 |
|
1096 |
/** |
1097 |
* <pre> |
1098 |
* Not supported right now, as StreamedWorkbook |
1099 |
* supports only reading. |
1100 |
* </pre> |
1101 |
* @exception UnsupportedOperationException |
1102 |
* |
1103 |
*/ |
1104 |
@NotImplemented |
1105 |
public void setDisplayFormulas(boolean show) { |
1106 |
throw new UnsupportedOperationException("Operation not supported."); |
1107 |
} |
1108 |
|
1109 |
/** |
1110 |
* <pre> |
1111 |
* Not supported due to memory footprint. |
1112 |
* </pre> |
1113 |
* @exception UnsupportedOperationException |
1114 |
*/ |
1115 |
@NotImplemented |
1116 |
public boolean isDisplayFormulas() { |
1117 |
throw new UnsupportedOperationException("Operation not supported."); |
1118 |
} |
1119 |
|
1120 |
/** |
1121 |
* <pre> |
1122 |
* Not supported right now, as StreamedWorkbook |
1123 |
* supports only reading. |
1124 |
* </pre> |
1125 |
* @exception UnsupportedOperationException |
1126 |
*/ |
1127 |
@NotImplemented |
1128 |
public void setDisplayRowColHeadings(boolean show) { |
1129 |
throw new UnsupportedOperationException("Operation not supported."); |
1130 |
} |
1131 |
|
1132 |
/** |
1133 |
* <pre> |
1134 |
* Not supported due to memory footprint. |
1135 |
* </pre> |
1136 |
* @exception UnsupportedOperationException |
1137 |
*/ |
1138 |
@NotImplemented |
1139 |
public boolean isDisplayRowColHeadings() { |
1140 |
throw new UnsupportedOperationException("Operation not supported."); |
1141 |
} |
1142 |
|
1143 |
/** |
1144 |
* <pre> |
1145 |
* Not supported right now, as StreamedWorkbook |
1146 |
* supports only reading. |
1147 |
* </pre> |
1148 |
* @exception UnsupportedOperationException |
1149 |
*/ |
1150 |
@NotImplemented |
1151 |
public void setRowBreak(int row) { |
1152 |
throw new UnsupportedOperationException("Operation not supported."); |
1153 |
} |
1154 |
|
1155 |
/** |
1156 |
* <pre> |
1157 |
* Will be supported in future. |
1158 |
* </pre> |
1159 |
* @exception UnsupportedOperationException |
1160 |
*/ |
1161 |
@NotImplemented |
1162 |
public boolean isRowBroken(int row) { |
1163 |
throw new UnsupportedOperationException("Operation not supported."); |
1164 |
} |
1165 |
|
1166 |
/** |
1167 |
* <pre> |
1168 |
* Not supported right now, as StreamedWorkbook |
1169 |
* supports only reading. |
1170 |
* </pre> |
1171 |
* @exception UnsupportedOperationException |
1172 |
*/ |
1173 |
@NotImplemented |
1174 |
public void removeRowBreak(int row) { |
1175 |
throw new UnsupportedOperationException("Operation not supported."); |
1176 |
} |
1177 |
|
1178 |
/** |
1179 |
* <pre> |
1180 |
* Not supported due to memory footprint. |
1181 |
* </pre> |
1182 |
* @exception UnsupportedOperationException |
1183 |
*/ |
1184 |
@NotImplemented |
1185 |
public int[] getRowBreaks() { |
1186 |
throw new UnsupportedOperationException("Operation not supported."); |
1187 |
} |
1188 |
|
1189 |
/** |
1190 |
* <pre> |
1191 |
* Not supported due to memory footprint. |
1192 |
* </pre> |
1193 |
* @exception UnsupportedOperationException |
1194 |
*/ |
1195 |
@NotImplemented |
1196 |
public int[] getColumnBreaks() { |
1197 |
throw new UnsupportedOperationException("Operation not supported."); |
1198 |
} |
1199 |
|
1200 |
/** |
1201 |
* <pre> |
1202 |
* Not supported right now, as StreamedWorkbook |
1203 |
* supports only reading. |
1204 |
* </pre> |
1205 |
* @exception UnsupportedOperationException |
1206 |
*/ |
1207 |
@NotImplemented |
1208 |
public void setColumnBreak(int column) { |
1209 |
throw new UnsupportedOperationException("Operation not supported."); |
1210 |
} |
1211 |
|
1212 |
/** |
1213 |
* <pre> |
1214 |
* Not supported due to memory footprint. |
1215 |
* </pre> |
1216 |
* @exception UnsupportedOperationException |
1217 |
*/ |
1218 |
@NotImplemented |
1219 |
public boolean isColumnBroken(int column) { |
1220 |
throw new UnsupportedOperationException("Operation not supported."); |
1221 |
} |
1222 |
|
1223 |
/** |
1224 |
* <pre> |
1225 |
* Not supported right now, as StreamedWorkbook |
1226 |
* supports only reading. |
1227 |
* </pre> |
1228 |
* @exception UnsupportedOperationException |
1229 |
*/ |
1230 |
@NotImplemented |
1231 |
public void removeColumnBreak(int column) { |
1232 |
throw new UnsupportedOperationException("Operation not supported."); |
1233 |
} |
1234 |
|
1235 |
/** |
1236 |
* <pre> |
1237 |
* Not supported right now, as StreamedWorkbook |
1238 |
* supports only reading. |
1239 |
* </pre> |
1240 |
* @exception UnsupportedOperationException |
1241 |
*/ |
1242 |
@NotImplemented |
1243 |
public void setColumnGroupCollapsed(int columnNumber, boolean collapsed) { |
1244 |
throw new UnsupportedOperationException("Operation not supported."); |
1245 |
} |
1246 |
|
1247 |
/** |
1248 |
* <pre> |
1249 |
* Not supported right now, as StreamedWorkbook |
1250 |
* supports only reading. |
1251 |
* </pre> |
1252 |
* @exception UnsupportedOperationException |
1253 |
*/ |
1254 |
@NotImplemented |
1255 |
public void groupColumn(int fromColumn, int toColumn) { |
1256 |
throw new UnsupportedOperationException("Operation not supported."); |
1257 |
} |
1258 |
|
1259 |
/** |
1260 |
* <pre> |
1261 |
* Not supported right now, as StreamedWorkbook |
1262 |
* supports only reading. |
1263 |
* </pre> |
1264 |
* @exception UnsupportedOperationException |
1265 |
*/ |
1266 |
@NotImplemented |
1267 |
public void ungroupColumn(int fromColumn, int toColumn) { |
1268 |
throw new UnsupportedOperationException("Operation not supported."); |
1269 |
} |
1270 |
|
1271 |
/** |
1272 |
* <pre> |
1273 |
* Not supported right now, as StreamedWorkbook |
1274 |
* supports only reading. |
1275 |
* </pre> |
1276 |
* @exception UnsupportedOperationException |
1277 |
*/ |
1278 |
@NotImplemented |
1279 |
public void groupRow(int fromRow, int toRow) { |
1280 |
throw new UnsupportedOperationException("Operation not supported."); |
1281 |
} |
1282 |
|
1283 |
/** |
1284 |
* <pre> |
1285 |
* Not supported right now, as StreamedWorkbook |
1286 |
* supports only reading. |
1287 |
* </pre> |
1288 |
* @exception UnsupportedOperationException |
1289 |
*/ |
1290 |
@NotImplemented |
1291 |
public void ungroupRow(int fromRow, int toRow) { |
1292 |
throw new UnsupportedOperationException("Operation not supported."); |
1293 |
} |
1294 |
|
1295 |
/** |
1296 |
* <pre> |
1297 |
* Not supported right now, as StreamedWorkbook |
1298 |
* supports only reading. |
1299 |
* </pre> |
1300 |
* @exception UnsupportedOperationException |
1301 |
*/ |
1302 |
@NotImplemented |
1303 |
public void setRowGroupCollapsed(int row, boolean collapse) { |
1304 |
throw new UnsupportedOperationException("Operation not supported."); |
1305 |
} |
1306 |
|
1307 |
/** |
1308 |
* <pre> |
1309 |
* Not supported right now, as StreamedWorkbook |
1310 |
* supports only reading. |
1311 |
* </pre> |
1312 |
* @exception UnsupportedOperationException |
1313 |
*/ |
1314 |
@NotImplemented |
1315 |
public void setDefaultColumnStyle(int column, CellStyle style) { |
1316 |
throw new UnsupportedOperationException("Operation not supported."); |
1317 |
} |
1318 |
|
1319 |
/** |
1320 |
* <pre> |
1321 |
* Not supported right now, as StreamedWorkbook |
1322 |
* supports only reading. |
1323 |
* </pre> |
1324 |
* @exception UnsupportedOperationException |
1325 |
*/ |
1326 |
@NotImplemented |
1327 |
public void autoSizeColumn(int column) { |
1328 |
throw new UnsupportedOperationException("Operation not supported."); |
1329 |
} |
1330 |
|
1331 |
/** |
1332 |
* <pre> |
1333 |
* Not supported right now, as StreamedWorkbook |
1334 |
* supports only reading. |
1335 |
* </pre> |
1336 |
* @exception UnsupportedOperationException |
1337 |
*/ |
1338 |
@NotImplemented |
1339 |
public void autoSizeColumn(int column, boolean useMergedCells) { |
1340 |
throw new UnsupportedOperationException("Operation not supported."); |
1341 |
} |
1342 |
|
1343 |
/** |
1344 |
* <pre> |
1345 |
* Not supported due to memory footprint. |
1346 |
* </pre> |
1347 |
* @exception UnsupportedOperationException |
1348 |
*/ |
1349 |
@NotImplemented |
1350 |
public Comment getCellComment(int row, int column) { |
1351 |
throw new UnsupportedOperationException("Operation not supported."); |
1352 |
} |
1353 |
|
1354 |
/** |
1355 |
* <pre> |
1356 |
* Not supported due to memory footprint. |
1357 |
* </pre> |
1358 |
* @exception UnsupportedOperationException |
1359 |
*/ |
1360 |
@NotImplemented |
1361 |
public Comment getCellComment(CellAddress ref) { |
1362 |
throw new UnsupportedOperationException("Operation not supported."); |
1363 |
} |
1364 |
|
1365 |
/** |
1366 |
* <pre> |
1367 |
* WNot supported due to memory footprint.. |
1368 |
* </pre> |
1369 |
* @exception UnsupportedOperationException |
1370 |
*/ |
1371 |
@NotImplemented |
1372 |
public Map<CellAddress, ? extends Comment> getCellComments() { |
1373 |
throw new UnsupportedOperationException("Operation not supported."); |
1374 |
} |
1375 |
|
1376 |
/** |
1377 |
* <pre> |
1378 |
* Not supported due to memory footprint. |
1379 |
* </pre> |
1380 |
* @exception UnsupportedOperationException |
1381 |
*/ |
1382 |
@NotImplemented |
1383 |
public Drawing getDrawingPatriarch() { |
1384 |
throw new UnsupportedOperationException("Operation not supported."); |
1385 |
} |
1386 |
|
1387 |
/** |
1388 |
* <pre> |
1389 |
* Not supported right now, as StreamedWorkbook |
1390 |
* supports only reading. |
1391 |
* </pre> |
1392 |
* @exception UnsupportedOperationException |
1393 |
*/ |
1394 |
@NotImplemented |
1395 |
public Drawing createDrawingPatriarch() { |
1396 |
throw new UnsupportedOperationException("Operation not supported."); |
1397 |
} |
1398 |
|
1399 |
/** |
1400 |
* <pre> |
1401 |
* Will not be supported due to memory constraints |
1402 |
* </pre> |
1403 |
* @exception UnsupportedOperationException |
1404 |
*/ |
1405 |
@NotImplemented |
1406 |
public Workbook getWorkbook() { |
1407 |
throw new UnsupportedOperationException("Operation not supported."); |
1408 |
} |
1409 |
|
1410 |
/** |
1411 |
* <pre> |
1412 |
* Returns sheet name |
1413 |
* </pre> |
1414 |
* @return String |
1415 |
*/ |
1416 |
public String getSheetName() { |
1417 |
return sheetName; |
1418 |
} |
1419 |
|
1420 |
/** |
1421 |
* <pre> |
1422 |
* Not supported right now, as StreamedWorkbook |
1423 |
* supports only reading. |
1424 |
* </pre> |
1425 |
* |
1426 |
*/ |
1427 |
@NotImplemented |
1428 |
public void setSheetName(String sheetName) { |
1429 |
//to avoid setting sheet name by user |
1430 |
if(this.sheetName == null)this.sheetName = sheetName; |
1431 |
} |
1432 |
|
1433 |
/** |
1434 |
* <pre> |
1435 |
* Not supported due to memory footprint. |
1436 |
* </pre> |
1437 |
* @exception UnsupportedOperationException |
1438 |
*/ |
1439 |
@NotImplemented |
1440 |
public boolean isSelected() { |
1441 |
throw new UnsupportedOperationException("Operation not supported."); |
1442 |
} |
1443 |
|
1444 |
/** |
1445 |
* <pre> |
1446 |
* Not supported right now, as StreamedWorkbook |
1447 |
* supports only reading. |
1448 |
* </pre> |
1449 |
* @exception UnsupportedOperationException |
1450 |
*/ |
1451 |
@NotImplemented |
1452 |
public CellRange<? extends Cell> setArrayFormula(String formula, |
1453 |
CellRangeAddress range) { |
1454 |
throw new UnsupportedOperationException("Operation not supported."); |
1455 |
} |
1456 |
|
1457 |
/** |
1458 |
* <pre> |
1459 |
* Not supported right now, as StreamedWorkbook |
1460 |
* supports only reading. |
1461 |
* </pre> |
1462 |
* @exception UnsupportedOperationException |
1463 |
*/ |
1464 |
@NotImplemented |
1465 |
public CellRange<? extends Cell> removeArrayFormula(Cell cell) { |
1466 |
throw new UnsupportedOperationException("Operation not supported."); |
1467 |
} |
1468 |
|
1469 |
/** |
1470 |
* <pre> |
1471 |
* Not supported due to memory footprint. |
1472 |
* </pre> |
1473 |
* @exception UnsupportedOperationException |
1474 |
*/ |
1475 |
@NotImplemented |
1476 |
public DataValidationHelper getDataValidationHelper() { |
1477 |
throw new UnsupportedOperationException("Operation not supported."); |
1478 |
} |
1479 |
|
1480 |
/** |
1481 |
* <pre> |
1482 |
* Not supported due to memory footprint. |
1483 |
* </pre> |
1484 |
* @exception UnsupportedOperationException |
1485 |
*/ |
1486 |
@NotImplemented |
1487 |
public List<? extends DataValidation> getDataValidations() { |
1488 |
throw new UnsupportedOperationException("Operation not supported."); |
1489 |
} |
1490 |
|
1491 |
/** |
1492 |
* <pre> |
1493 |
* Not supported right now, as StreamedWorkbook |
1494 |
* supports only reading. |
1495 |
* </pre> |
1496 |
* @exception UnsupportedOperationException |
1497 |
*/ |
1498 |
@NotImplemented |
1499 |
public void addValidationData(DataValidation dataValidation) { |
1500 |
throw new UnsupportedOperationException("Operation not supported."); |
1501 |
} |
1502 |
|
1503 |
/** |
1504 |
* <pre> |
1505 |
* Not supported right now, as StreamedWorkbook |
1506 |
* supports only reading. |
1507 |
* </pre> |
1508 |
* @exception UnsupportedOperationException |
1509 |
*/ |
1510 |
@NotImplemented |
1511 |
public AutoFilter setAutoFilter(CellRangeAddress range) { |
1512 |
throw new UnsupportedOperationException("Operation not supported."); |
1513 |
} |
1514 |
|
1515 |
/** |
1516 |
* <pre> |
1517 |
* Not supported due to memory footprint. |
1518 |
* </pre> |
1519 |
* @exception UnsupportedOperationException |
1520 |
*/ |
1521 |
@NotImplemented |
1522 |
public SheetConditionalFormatting getSheetConditionalFormatting() { |
1523 |
throw new UnsupportedOperationException("Operation not supported."); |
1524 |
} |
1525 |
|
1526 |
/** |
1527 |
* <pre> |
1528 |
* Not supported due to memory footprint. |
1529 |
* </pre> |
1530 |
* @exception UnsupportedOperationException |
1531 |
*/ |
1532 |
@NotImplemented |
1533 |
public CellRangeAddress getRepeatingRows() { |
1534 |
throw new UnsupportedOperationException("Operation not supported."); |
1535 |
} |
1536 |
|
1537 |
/** |
1538 |
* <pre> |
1539 |
* Not supported due to memory footprint. |
1540 |
* </pre> |
1541 |
*/ |
1542 |
@NotImplemented |
1543 |
public CellRangeAddress getRepeatingColumns() { |
1544 |
throw new UnsupportedOperationException("Operation not supported."); |
1545 |
} |
1546 |
|
1547 |
/** |
1548 |
* <pre> |
1549 |
* Not supported right now, as StreamedWorkbook |
1550 |
* supports only reading. |
1551 |
* </pre> |
1552 |
* @exception UnsupportedOperationException |
1553 |
*/ |
1554 |
@NotImplemented |
1555 |
public void setRepeatingRows(CellRangeAddress rowRangeRef) { |
1556 |
throw new UnsupportedOperationException("Operation not supported."); |
1557 |
} |
1558 |
|
1559 |
/** |
1560 |
* <pre> |
1561 |
* Not supported right now, as StreamedWorkbook |
1562 |
* supports only reading. |
1563 |
* </pre> |
1564 |
* @exception UnsupportedOperationException |
1565 |
*/ |
1566 |
@NotImplemented |
1567 |
public void setRepeatingColumns(CellRangeAddress columnRangeRef) { |
1568 |
throw new UnsupportedOperationException("Operation not supported."); |
1569 |
} |
1570 |
|
1571 |
/** |
1572 |
* <pre> |
1573 |
* Not supported due to memory footprint. |
1574 |
* </pre> |
1575 |
* @exception UnsupportedOperationException |
1576 |
*/ |
1577 |
@NotImplemented |
1578 |
public int getColumnOutlineLevel(int columnIndex) { |
1579 |
throw new UnsupportedOperationException("Operation not supported."); |
1580 |
} |
1581 |
|
1582 |
/** |
1583 |
* <pre> |
1584 |
* Not supported due to memory footprint. |
1585 |
* </pre> |
1586 |
* @exception UnsupportedOperationException |
1587 |
*/ |
1588 |
@NotImplemented |
1589 |
public Hyperlink getHyperlink(int row, int column) { |
1590 |
throw new UnsupportedOperationException("Operation not supported."); |
1591 |
} |
1592 |
|
1593 |
/** |
1594 |
* <pre> |
1595 |
* Not supported due to memory footprint. |
1596 |
* </pre> |
1597 |
* @exception UnsupportedOperationException |
1598 |
*/ |
1599 |
@NotImplemented |
1600 |
public Hyperlink getHyperlink(CellAddress addr) { |
1601 |
throw new UnsupportedOperationException("Operation not supported."); |
1602 |
} |
1603 |
|
1604 |
|
1605 |
/** |
1606 |
* <pre> |
1607 |
* Will not be supported due to memory constraints |
1608 |
* </pre> |
1609 |
* @exception UnsupportedOperationException |
1610 |
*/ |
1611 |
@NotImplemented |
1612 |
public List<? extends Hyperlink> getHyperlinkList() { |
1613 |
throw new UnsupportedOperationException("Operation not supported."); |
1614 |
} |
1615 |
|
1616 |
/** |
1617 |
* <pre> |
1618 |
* Not supported due to memory footprint. |
1619 |
* </pre> |
1620 |
* @exception UnsupportedOperationException |
1621 |
*/ |
1622 |
@NotImplemented |
1623 |
public CellAddress getActiveCell() { |
1624 |
throw new UnsupportedOperationException("Operation not supported."); |
1625 |
} |
1626 |
|
1627 |
/** |
1628 |
* <pre> |
1629 |
* Not supported right now, as StreamedWorkbook |
1630 |
* supports only reading. |
1631 |
* </pre> |
1632 |
* @exception UnsupportedOperationException |
1633 |
* |
1634 |
*/ |
1635 |
@NotImplemented |
1636 |
public void setActiveCell(CellAddress address) { |
1637 |
throw new UnsupportedOperationException("Operation not supported."); |
1638 |
} |
1639 |
|
1640 |
|
1641 |
|
1642 |
|
1643 |
|
1644 |
|
1645 |
} |