FileStream
Revisión
FileStream Es una clase en Aspose.3D FOSS para Java. Heredados de: Stream.
Stream de archivos para leer y escribir archivo.
Esta clase proporciona 16 métodos para trabajar con los objetos de FileStream en programas Java. Los métodos disponibles incluyen: FileStream, Stream, close, flush, getInputStream, getLength, getOutputStream, read, readByte, seek, setLength, write,y 1 métodos adicionales. Todos los miembros públicos están accesibles a cualquier aplicación Java después de instalar el Aspose.3D FOSS para el paquete Java. Propiedades : APPEND, CREATE, OPEN, READ, READ_WRITE, WRITE,Y tres más.
Propiedades
| Nombre | Tipo | Acceso | Descripción |
|---|---|---|---|
length | long | Leer | Tiene la longitud del archivo. |
CREATE | int | Leer | recibe la creación. |
OPEN | int | Leer | Obtenga la abierta. |
APPEND | int | Leer | Obtenga el apendice. |
READ | int | Leer | Obtenga la lectura. |
WRITE | int | Leer | Obtenga la escritura. |
READ_WRITE | int | Leer | Se lea la lectura escribiendo. |
outputStream | OutputStream | Leer | Tiene el flujo de salida. |
inputStream | java.io.InputStream | Leer | Tiene el flujo de entrada. |
Metodología
| firma | Descripción |
|---|---|
FileStream(fileName: String, fileMode: int, fileAccess: int) | Crea un nuevo flujo de archivos. |
FileStream(fileName: String, fileMode: int) | Crea un nuevo flujo de archivos. |
getLength() → long | Tiene la longitud del archivo. |
setLength(len: long) | - Define la longitud del archivo. |
readByte() → int | Lea un byte del archivo. |
read(buf: byte[]) → int | Lea bajetas del archivo. |
read(buf: byte[], start: int, len: int) → int | Lea bajetas del archivo. |
write(buf: byte[]) | Escribe bajetas al archivo. |
write(buf: byte[], start: int, len: int) | Escribe bajetas al archivo. |
writeByte(b: int) | Escribe un byte en el archivo. |
seek(offset: long, seek: int) → long | Busca una posición en el archivo. |
close() | Cierra el flujo de archivos. |
flush() | Flushes el flujo de archivos. |
Stream(in: InputStream) | Stream de archivos para leer y escribir archivo. |
getOutputStream() → OutputStream | Retorna el flujo de salida. |
getInputStream() → java.io.InputStream | Crea un nuevo flujo de archivos. |