save/load/removeを追加 Impl WIP

This commit is contained in:
r-ca 2023-12-25 11:46:54 +09:00
parent 92d147ab65
commit 8441b88ab3
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,7 @@ public interface FileManager {
void createDir(String dirName); void createDir(String dirName);
void removeDir(String dirName); void removeDir(String dirName);
void saveBitmap(Path path, Bitmap bitmap); void saveBitmapAtCurrent(Bitmap bitmap, String fileName);
Bitmap loadBitmap(Path path); Bitmap loadBitmap(Path path);
void removeBitmap(Path path); void removeBitmap(Path path);

View File

@ -2,6 +2,7 @@ package one.nem.lacerta.source.file.impl;
import android.graphics.Bitmap; import android.graphics.Bitmap;
import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.nio.file.DirectoryStream; import java.nio.file.DirectoryStream;
import java.nio.file.Files; import java.nio.file.Files;
@ -84,7 +85,8 @@ public class FileManagerImpl implements FileManager {
} }
@Override @Override
public void saveBitmap(Path path, Bitmap bitmap) { public void saveBitmapAtCurrent(Bitmap bitmap, String fileName) {
this.currentDir
} }
@Override @Override