You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BeginRecord.java 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. ==================================================================== */
  15. package org.apache.poi.hssf.record.chart;
  16. import org.apache.poi.hssf.record.RecordInputStream;
  17. import org.apache.poi.hssf.record.StandardRecord;
  18. import org.apache.poi.util.LittleEndianOutput;
  19. /**
  20. * The begin record defines the start of a block of records for a (grpahing
  21. * data object. This record is matched with a corresponding EndRecord.
  22. *
  23. * @see EndRecord
  24. *
  25. * @author Glen Stampoultzis (glens at apache.org)
  26. */
  27. public final class BeginRecord extends StandardRecord {
  28. public static final short sid = 0x1033;
  29. public BeginRecord()
  30. {
  31. }
  32. /**
  33. * @param in unused (since this record has no data)
  34. */
  35. public BeginRecord(RecordInputStream in)
  36. {
  37. }
  38. public String toString()
  39. {
  40. StringBuffer buffer = new StringBuffer();
  41. buffer.append("[BEGIN]\n");
  42. buffer.append("[/BEGIN]\n");
  43. return buffer.toString();
  44. }
  45. public void serialize(LittleEndianOutput out) {
  46. }
  47. protected int getDataSize() {
  48. return 0;
  49. }
  50. public short getSid()
  51. {
  52. return sid;
  53. }
  54. public Object clone() {
  55. BeginRecord br = new BeginRecord();
  56. // No data so nothing to copy
  57. return br;
  58. }
  59. }