From 8219186b2eb5f5229433ae707171c5eba97a28f4 Mon Sep 17 00:00:00 2001 From: simonpoole Date: Sun, 7 Jan 2024 11:44:09 +0100 Subject: [PATCH] Extract and make CompressFlags public Fixes https://github.com/openstreetmap/OSM-binary/issues/68 --- src.java/crosby/binary/file/BlockOutputStream.java | 4 ---- src.java/crosby/binary/file/CompressFlags.java | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 src.java/crosby/binary/file/CompressFlags.java diff --git a/src.java/crosby/binary/file/BlockOutputStream.java b/src.java/crosby/binary/file/BlockOutputStream.java index 83abedb..4853fb0 100644 --- a/src.java/crosby/binary/file/BlockOutputStream.java +++ b/src.java/crosby/binary/file/BlockOutputStream.java @@ -25,10 +25,6 @@ License, or (at your option) any later version. import java.util.ArrayList; import java.util.List; -enum CompressFlags { - NONE, DEFLATE -} - public class BlockOutputStream implements Closeable, Flushable { public BlockOutputStream(OutputStream output) { diff --git a/src.java/crosby/binary/file/CompressFlags.java b/src.java/crosby/binary/file/CompressFlags.java new file mode 100644 index 0000000..d7e90e5 --- /dev/null +++ b/src.java/crosby/binary/file/CompressFlags.java @@ -0,0 +1,5 @@ +package crosby.binary.file; + +public enum CompressFlags { + NONE, DEFLATE +} \ No newline at end of file