Package net.aequologica.neo.serioulizer
Interface Serioulizer
-
- All Superinterfaces:
AutoCloseable,Closeable
public interface Serioulizer extends Closeable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceSerioulizer.Streamstatic classSerioulizer.StreamImpl
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()static Serioulizer.StreamcreateStream(byte[] bytes, String mimeType)static Serioulizer.StreamcreateStream(InputStream inputStream, String mimeType, long length)static Serioulizer.StreamcreateStream(String content)voiddelete(Path path)Serioulizer.StreamgetStream(Path path)List<Path>list(Path path)static Stringread(InputStream inputStream)static Stringread(InputStream inputStream, String charsetName)voidwrite(Path path, Serioulizer.Stream stream)
-
-
-
Method Detail
-
list
List<Path> list(Path path) throws IOException
- Throws:
IOException
-
write
void write(Path path, Serioulizer.Stream stream) throws IOException
- Throws:
IOException
-
getStream
Serioulizer.Stream getStream(Path path) throws IOException
- Throws:
IOException
-
delete
void delete(Path path) throws IOException
- Throws:
IOException
-
close
default void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
createStream
static Serioulizer.Stream createStream(InputStream inputStream, String mimeType, long length)
-
createStream
static Serioulizer.Stream createStream(byte[] bytes, String mimeType)
-
createStream
static Serioulizer.Stream createStream(String content)
-
read
static String read(InputStream inputStream) throws IOException
- Throws:
IOException
-
read
static String read(InputStream inputStream, String charsetName) throws IOException
- Throws:
IOException
-
-