MemoryFileSystem

MemoryFileSystem

Tổng quan

MemoryFileSystem là một lớp trong Aspose.3D FOSS cho Java. Dòng thừa kế từ: FileSystem.

Khóa học này cung cấp 8 phương pháp để làm việc với các đối tượng MemoryFileSystem trong các chương trình Java. Các phương pháp có sẵn bao gồm: MemoryFileSystem, close, createDummyFileSystem, createLocalFileSystem, createMemoryFileSystem, createZipFileSystem, readFile, writeFile. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng Java nào sau khi cài đặt Aspose.3D FOSS cho gói Java.

Phương pháp

SignatureDescription
MemoryFileSystem(files: Map<String, ByteArrayOutputStream>)Nhấn MemoryFileSystem(các tệp) trên ví dụ này MemoryFileSystem.
readFile(fileName: String, options: IOConfig)InputStreamCall readFile(fileName, tùy chọn) trên trường hợp này MemoryFileSystem.
writeFile(fileName: String, options: IOConfig)OutputStreamCalls writeFile(fileName, tùy chọn) trên trường hợp này MemoryFileSystem.
close()Gọi gần vào trường hợp MemoryFileSystem này.
createLocalFileSystem(directory: String)LocalFileSystemKhởi động một FileSystem mới mà chỉ truy cập vào thư mục địa phương.
createMemoryFileSystem(files: Map<String, ByteArrayOutputStream>)MemoryFileSystemKhởi đầu một FileSystem mới từ một từ điển của dòng bộ nhớ.
createDummyFileSystem()DummyFileSystemTạo một hệ thống tệp ngu ngốc, các hoạt động đọc/tự viết là hoạt hình ngu.
createZipFileSystem(stream: InputStream, baseDir: String)ZipFileSystemTạo một hệ thống tệp để cung cấp cho truy cập đọc đơn đến các tập tin zip hoặc dòng zip cụ thể.

Xem thêm

 Tiếng Việt