public class ObjectFileStorage<T> extends Object
| Constructor and Description |
|---|
ObjectFileStorage() |
| Modifier and Type | Method and Description |
|---|---|
T |
readObjectFromFile(File file) |
T |
readObjectFromFile(String filePath) |
List<T> |
readObjectsFromFile(File file) |
List<T> |
readObjectsFromFile(String filePath) |
void |
writeObjectsToFile(List<T> objects,
File file) |
void |
writeObjectsToFile(List<T> objects,
String filePath) |
void |
writeObjectToFile(T object,
File file) |
void |
writeObjectToFile(T object,
String filePath) |
public void writeObjectToFile(T object, String filePath) throws Exception
Exceptionpublic void writeObjectToFile(T object, File file) throws Exception
Exceptionpublic void writeObjectsToFile(List<T> objects, String filePath) throws Exception
Exceptionpublic void writeObjectsToFile(List<T> objects, File file) throws Exception
Exceptionpublic List<T> readObjectsFromFile(String filePath) throws Exception
ExceptionCopyright © 2023. All rights reserved.