Class BlockOutputStream


  • public class BlockOutputStream
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      BlockOutputStream​(java.io.OutputStream output)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void flush()  
      void setCompress​(java.lang.String s)  
      void setCompress​(org.openstreetmap.osmosis.osmbinary.file.CompressFlags flag)  
      void write​(FileBlock block)
      Write a block with the stream's default compression flag
      void write​(FileBlock block, org.openstreetmap.osmosis.osmbinary.file.CompressFlags compression)
      Write a specific block with a specific compression flags
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BlockOutputStream

        public BlockOutputStream​(java.io.OutputStream output)
    • Method Detail

      • setCompress

        public void setCompress​(org.openstreetmap.osmosis.osmbinary.file.CompressFlags flag)
      • setCompress

        public void setCompress​(java.lang.String s)
      • write

        public void write​(FileBlock block)
                   throws java.io.IOException
        Write a block with the stream's default compression flag
        Throws:
        java.io.IOException
      • write

        public void write​(FileBlock block,
                          org.openstreetmap.osmosis.osmbinary.file.CompressFlags compression)
                   throws java.io.IOException
        Write a specific block with a specific compression flags
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException