Code formatting.
[svjatoslav_commons.git] / src / main / java / eu / svjatoslav / commons / data / EnhancedDataOutputStream.java
old mode 100644 (file)
new mode 100755 (executable)
index 2476bbc..c84d2da
@@ -1,10 +1,10 @@
 /*
  * Svjatoslav Commons - shared library of common functionality.
- * Copyright ©2012-2013, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- * 
+ * Copyright ©2012-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ *
  * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 2 of the GNU General Public License
- * as published by the Free Software Foundation.
+ * modify it under the terms of version 3 of the GNU Lesser General Public License
+ * or later as published by the Free Software Foundation.
  */
 
 package eu.svjatoslav.commons.data;
@@ -16,27 +16,27 @@ import java.util.List;
 
 public class EnhancedDataOutputStream extends DataOutputStream {
 
-       public EnhancedDataOutputStream(final OutputStream out) {
-               super(out);
-       }
+    public EnhancedDataOutputStream(final OutputStream out) {
+        super(out);
+    }
 
-       public void writeIntegerList(final List<Integer> list) throws IOException {
-               writeInt(list.size());
+    public void writeIntegerList(final List<Integer> list) throws IOException {
+        writeInt(list.size());
 
-               for (final Integer integer : list)
-                       writeInt(integer);
-       }
+        for (final Integer integer : list)
+            writeInt(integer);
+    }
 
-       public void writeString(final String string) throws IOException {
-               if (string == null) {
-                       writeInt(-1);
-                       return;
-               }
+    public void writeString(final String string) throws IOException {
+        if (string == null) {
+            writeInt(-1);
+            return;
+        }
 
-               final byte[] bytes = string.getBytes("UTF-8");
+        final byte[] bytes = string.getBytes("UTF-8");
 
-               writeInt(bytes.length);
-               write(bytes);
-       }
+        writeInt(bytes.length);
+        write(bytes);
+    }
 
 }