Class AttributeOutputStream
java.lang.Object
simula.compiler.AttributeOutputStream
Attribute output stream.
Link to GitHub: Source File.
- Author:
- Øystein Myhre Andersen
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) DataOutputStream
The underlying DataOutputStream.private boolean
Debug utility. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new AttributeOutputStream to write data to the specified OutputStream. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this AttributeOutputStream.void
writeBoolean
(boolean b) Writes a boolean to the underlying DataOutputStream.void
Writes a typed constant to the underlying DataOutputStream.void
writeKind
(int i) Writes a kind code to the underlying DataOutputStream.void
writeObj
(SyntaxClass obj) Writes a Object to the underlying DataOutputStream.void
writeObjectList
(ObjectList<?> list) Writes a Object list to the underlying DataOutputStream.void
writeShort
(int i) Writes a short to the underlying DataOutputStream.void
Writes a String to the underlying DataOutputStream.void
Writes a type to the underlying DataOutputStream.
-
Field Details
-
oupt
DataOutputStream ouptThe underlying DataOutputStream. -
TRACE
private boolean TRACEDebug utility.
-
-
Constructor Details
-
AttributeOutputStream
Creates a new AttributeOutputStream to write data to the specified OutputStream.- Parameters:
oupt
- the underlying OutputStream.- Throws:
IOException
- if an I/O error occurs.
-
-
Method Details
-
close
Closes this AttributeOutputStream.- Throws:
IOException
- if an I/O error occurs.
-
writeKind
Writes a kind code to the underlying DataOutputStream.- Parameters:
i
- a kind code to be written.- Throws:
IOException
- if an I/O error occurs.
-
writeType
Writes a type to the underlying DataOutputStream.- Parameters:
type
- a type to be written.- Throws:
IOException
- if an I/O error occurs.
-
writeBoolean
Writes a boolean to the underlying DataOutputStream.- Parameters:
b
- a boolean to be written.- Throws:
IOException
- if an I/O error occurs.
-
writeShort
Writes a short to the underlying DataOutputStream.- Parameters:
i
- a short to be written.- Throws:
IOException
- if an I/O error occurs.
-
writeConstant
Writes a typed constant to the underlying DataOutputStream.- Parameters:
c
- a typed constant to be written.- Throws:
IOException
- if an I/O error occurs.
-
writeString
Writes a String to the underlying DataOutputStream.- Parameters:
s
- a String to be written.- Throws:
IOException
- if an I/O error occurs.
-
writeObjectList
Writes a Object list to the underlying DataOutputStream.- Parameters:
list
- a Object list to be written.- Throws:
IOException
- if an I/O error occurs.
-
writeObj
Writes a Object to the underlying DataOutputStream.- Parameters:
obj
- a Object to be written.- Throws:
IOException
- if an I/O error occurs.
-