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

NameTypeAccessDescription
lengthlongReadGets the length of the file.
CREATEintReadGets the create.
OPENintReadGets the open.
APPENDintReadGets the append.
READintReadGets the read.
WRITEintReadGets the write.
READ_WRITEintReadGets the read write.
outputStreamOutputStreamReadGets the output stream.
inputStreamjava.io.InputStreamReadGets the input stream.

méthodes

SignatureDescription
FileStream(fileName: String, fileMode: int, fileAccess: int)Creates a new file stream.
FileStream(fileName: String, fileMode: int)Creates a new file stream.
getLength()longGets the length of the file.
setLength(len: long)Sets the length of the file.
readByte()intReads a byte from the file.
read(buf: byte[])intReads bytes from the file.
read(buf: byte[], start: int, len: int)intReads 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)longSeeks 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()OutputStreamReturns the output stream.
getInputStream()java.io.InputStreamCreates a new file stream.

Voir aussi

  • Aspose.3D - référence API d’entreprise
 Français