Package org.jusecase.jte.internal
Class IoUtils
- java.lang.Object
-
- org.jusecase.jte.internal.IoUtils
-
public final class IoUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description IoUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voiddeleteDirectoryContent(Path directory)static byte[]getUtf8Bytes(String string)static intgetUtf8Length(String string)static StringtoString(InputStream inputStream)static voidwriteUtf8(String string, OutputStream outputStream)
-
-
-
Method Detail
-
toString
public static String toString(InputStream inputStream) throws IOException
- Throws:
IOException
-
deleteDirectoryContent
public static void deleteDirectoryContent(Path directory)
-
getUtf8Bytes
public static byte[] getUtf8Bytes(String string)
-
getUtf8Length
public static int getUtf8Length(String string)
-
writeUtf8
public static void writeUtf8(String string, OutputStream outputStream) throws IOException
- Throws:
IOException
-
-