Package net.aequologica.neo.serioulizer
Class InMemoryReaderWriter<T>
- java.lang.Object
-
- net.aequologica.neo.serioulizer.InMemoryReaderWriter<T>
-
- All Implemented Interfaces:
Reader<T>,ReaderWriter<T>,Writer<T>
@Alternative public class InMemoryReaderWriter<T> extends Object implements ReaderWriter<T>
-
-
Constructor Summary
Constructors Constructor Description InMemoryReaderWriter()InMemoryReaderWriter(Map<Path,T> objectStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tread(InputStream inputStream)Tread(Reader reader)Tread(Path path)voidwrite(OutputStream outputStream, T t)voidwrite(Writer writer, T t)voidwrite(Path path, T t)
-
-
-
Method Detail
-
write
public void write(OutputStream outputStream, T t) throws IOException
- Specified by:
writein interfaceWriter<T>- Throws:
IOException
-
write
public void write(Writer writer, T t) throws IOException
- Specified by:
writein interfaceWriter<T>- Throws:
IOException
-
write
public void write(Path path, T t) throws IOException
- Specified by:
writein interfaceWriter<T>- Throws:
IOException
-
read
public T read(InputStream inputStream) throws IOException
- Specified by:
readin interfaceReader<T>- Throws:
IOException
-
read
public T read(Reader reader) throws IOException
- Specified by:
readin interfaceReader<T>- Throws:
IOException
-
read
public T read(Path path) throws IOException
- Specified by:
readin interfaceReader<T>- Throws:
IOException
-
-