Package io.mateu.mdd.shared.data
Class DataHelper
- java.lang.Object
-
- io.mateu.mdd.shared.data.DataHelper
-
public class DataHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description DataHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisEmpty(String s)static Stringread(InputStream is)static byte[]readBytes(File f)static byte[]readBytes(String fn)static byte[]readBytes(URL url)static voidwrite(File f, byte[] bytes)static voidwrite(String fn, byte[] bytes)
-
-
-
Method Detail
-
isEmpty
public static boolean isEmpty(String s)
-
read
public static String read(InputStream is)
-
write
public static void write(String fn, byte[] bytes)
-
write
public static void write(File f, byte[] bytes)
-
readBytes
public static byte[] readBytes(String fn) throws IOException
- Throws:
IOException
-
readBytes
public static byte[] readBytes(File f) throws IOException
- Throws:
IOException
-
readBytes
public static byte[] readBytes(URL url) throws IOException
- Throws:
IOException
-
-