FileStream
Vue de l’ensemble
‘FileStream’ est une classe dans Aspose.3D FOSS pour Java.
Fichiers de streaming pour lire et écrire des fichières.
Cette classe fournit 16 méthodes pour travailler avec des objets FileStream dans les programmes Java. Les méthodologies disponibles comprennent: FileStreum, Streom , ‘close;flush; getInputStreem : ‘getLength: ’getOutput Stream.readetseek. tous les membres publics sont accessibles à toute application Java après l'installation de l’Aspose.3D FOSS pour le package Java . Propriétés : APPEND! ,CREATE ? , ‘OPEN
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
length | long | Read | Gets the length of the file. |
CREATE | int | Read | Gets the create. |
OPEN | int | Read | Gets the open. |
APPEND | int | Read | Gets the append. |
READ | int | Read | Gets the read. |
WRITE | int | Read | Gets the write. |
READ_WRITE | int | Read | Gets the read write. |
outputStream | OutputStream | Read | Gets the output stream. |
inputStream | java.io.InputStream | Read | Gets the input stream. |
méthodes
| Signature | Description |
|---|---|
FileStream(fileName: String, fileMode: int, fileAccess: int) | Creates a new file stream. |
FileStream(fileName: String, fileMode: int) | Creates a new file stream. |
getLength() → long | Gets the length of the file. |
setLength(len: long) | Sets the length of the file. |
readByte() → int | Reads a byte from the file. |
read(buf: byte[]) → int | Reads bytes from the file. |
read(buf: byte[], start: int, len: int) → int | Reads bytes from the file. |
write(buf: byte[]) | Writes bytes to the file. |
write(buf: byte[], start: int, len: int) | Writes bytes to the file. |
writeByte(b: int) | Writes a byte to the file. |
seek(offset: long, seek: int) → long | Seeks to a position in the file. |
close() | Closes the file stream. |
flush() | Flushes the file stream. |
Stream(in: InputStream) | File stream for reading and writing files. |
getOutputStream() → OutputStream | Returns the output stream. |
getInputStream() → java.io.InputStream | Creates a new file stream. |
Voir aussi
- Aspose.3D - référence API d’entreprise