Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.poifs.storage;
  16. import java.io.IOException;
  17. import java.io.OutputStream;
  18. /**
  19. * An interface for persisting block storage of POIFS components.
  20. */
  21. public interface BlockWritable {
  22. /**
  23. * Write the storage to an OutputStream
  24. *
  25. * @param stream the OutputStream to which the stored data should
  26. * be written
  27. *
  28. * @throws IOException on problems writing to the specified
  29. * stream
  30. */
  31. void writeBlocks(final OutputStream stream) throws IOException;
  32. } // end public interface BlockWritable