Drag[en]gine Script Module DragonScript  1.21
Dragengine.FileWriter Class Reference

File writer. More...

Inheritance diagram for Dragengine.FileWriter:

Public Member Functions

Management
String getFilename ()
 File name. More...
 
int getStreamVersion ()
 Stream version used by writeToFile of native classes. More...
 
void setStreamVersion (int version)
 Set stream version used by writeToFile of native classes. More...
 
void writeChar (int value)
 Write one byte (1 byte). More...
 
void writeByte (int value)
 Write one unsigned byte (1 byte). More...
 
void writeShort (int value)
 Write one short (2 bytes). More...
 
void writeUShort (int value)
 Write one unsigned short (2 bytes). More...
 
void writeInt (int value)
 Write one int (4 bytes). More...
 
void writeUInt (int value)
 Write one unsigned int (4 bytes). More...
 
void writeFloat (float value)
 Write one float (4 bytes). More...
 
void writeString8 (String string)
 Write a string prefixed by a 1-byte length field. More...
 
void writeString16 (String string)
 Write a string prefixed by a 2-byte2 length field. More...
 
void writeString (String data)
 Write string without length field. More...
 
void writeData (FileReader reader)
 Write data from file reader. More...
 
void writeData (FileReader reader, int size)
 Write data from file reader. More...
 
void writeTimeDate (TimeDate timeDate)
 Write TimeDate instance. More...
 

Constructors

FileWriter new (String filename)
 Create file writer writing to virtual file system file. More...
 
static FileWriter newZCompressed (String filename)
 Create Z-Compressing file writer writing to virtual file system file. More...
 

Detailed Description

File writer.

This is a native class.

Member Function Documentation

◆ getFilename()

String Dragengine.FileWriter.getFilename ( )

File name.

◆ getStreamVersion()

int Dragengine.FileWriter.getStreamVersion ( )

Stream version used by writeToFile of native classes.

◆ new()

FileWriter Dragengine.FileWriter.new ( String  filename)

Create file writer writing to virtual file system file.

◆ newZCompressed()

static FileWriter Dragengine.FileWriter.newZCompressed ( String  filename)
static

Create Z-Compressing file writer writing to virtual file system file.

Version
1.8

◆ setStreamVersion()

void Dragengine.FileWriter.setStreamVersion ( int  version)

Set stream version used by writeToFile of native classes.

◆ writeByte()

void Dragengine.FileWriter.writeByte ( int  value)

Write one unsigned byte (1 byte).

◆ writeChar()

void Dragengine.FileWriter.writeChar ( int  value)

Write one byte (1 byte).

◆ writeData() [1/2]

void Dragengine.FileWriter.writeData ( FileReader  reader)

Write data from file reader.

◆ writeData() [2/2]

void Dragengine.FileWriter.writeData ( FileReader  reader,
int  size 
)

Write data from file reader.

◆ writeFloat()

void Dragengine.FileWriter.writeFloat ( float  value)

Write one float (4 bytes).

◆ writeInt()

void Dragengine.FileWriter.writeInt ( int  value)

Write one int (4 bytes).

◆ writeShort()

void Dragengine.FileWriter.writeShort ( int  value)

Write one short (2 bytes).

◆ writeString()

void Dragengine.FileWriter.writeString ( String  data)

Write string without length field.

◆ writeString16()

void Dragengine.FileWriter.writeString16 ( String  string)

Write a string prefixed by a 2-byte2 length field.

◆ writeString8()

void Dragengine.FileWriter.writeString8 ( String  string)

Write a string prefixed by a 1-byte length field.

◆ writeTimeDate()

void Dragengine.FileWriter.writeTimeDate ( TimeDate  timeDate)

Write TimeDate instance.

◆ writeUInt()

void Dragengine.FileWriter.writeUInt ( int  value)

Write one unsigned int (4 bytes).

◆ writeUShort()

void Dragengine.FileWriter.writeUShort ( int  value)

Write one unsigned short (2 bytes).


The documentation for this class was generated from the following file: