文件管理器类,用于保存和加载图形
Definition at line 18 of file FileManager.java.
◆ FileManager()
com.example.graphics.util.FileManager.FileManager |
( |
| ) |
|
|
inline |
◆ loadDrawingBinary()
List< Shape > com.example.graphics.util.FileManager.loadDrawingBinary |
( |
String | filePath | ) |
throws IOException, ClassNotFoundException |
|
inline |
◆ loadDrawingJson()
List< Shape > com.example.graphics.util.FileManager.loadDrawingJson |
( |
String | filePath | ) |
throws IOException |
|
inline |
◆ saveDrawingBinary()
void com.example.graphics.util.FileManager.saveDrawingBinary |
( |
Drawing | drawing, |
|
|
String | filePath ) throws IOException |
|
inline |
将图形保存为二进制文件
- Parameters
-
drawing | 要保存的图形 |
filePath | 文件路径 |
- Exceptions
-
Definition at line 34 of file FileManager.java.
◆ saveDrawingJson()
void com.example.graphics.util.FileManager.saveDrawingJson |
( |
String | jsonData, |
|
|
String | filePath ) throws IOException |
|
inline |
将图形保存为JSON文件
- Parameters
-
jsonData | JSON数据 |
filePath | 文件路径 |
- Exceptions
-
Definition at line 62 of file FileManager.java.
◆ saveDrawingXml()
void com.example.graphics.util.FileManager.saveDrawingXml |
( |
String | xmlData, |
|
|
String | filePath ) throws IOException |
|
inline |
将图形保存为XML文件
- Parameters
-
xmlData | XML数据 |
filePath | 文件路径 |
- Exceptions
-
Definition at line 134 of file FileManager.java.
◆ shapeFactory
final ShapeFactory com.example.graphics.util.FileManager.shapeFactory |
|
private |
The documentation for this class was generated from the following file: