Package yapion.packet
Class YAPIONOutputStream
- java.lang.Object
-
- yapion.packet.YAPIONOutputStream
-
public final class YAPIONOutputStream extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description YAPIONOutputStream(java.io.OutputStream outputStream)
Creates a YAPIONOutputStream from an OutputStream.
-
Method Summary
Modifier and Type Method Description void
close()
Closes the OutputStream.void
write(java.lang.Object object)
Writing the Object to the OutputStream.void
write(java.lang.Object object, java.lang.String state)
Writing the Object to the OutputStream with a specific state.void
write(YAPIONObject yapionObject)
Writing the YAPIONObject to the OutputStream.void
write(YAPIONPacket yapionPacket)
Writing the YAPIONPacket to the OutputStream.
-
-
-
Method Detail
-
write
public void write(YAPIONObject yapionObject)
Writing the YAPIONObject to the OutputStream.- Parameters:
yapionObject
- the YAPIONObject
-
write
public void write(YAPIONPacket yapionPacket)
Writing the YAPIONPacket to the OutputStream.- Parameters:
yapionPacket
- the YAPIONPacket
-
write
public void write(java.lang.Object object)
Writing the Object to the OutputStream.- Parameters:
object
- the Object
-
write
public void write(java.lang.Object object, java.lang.String state)
Writing the Object to the OutputStream with a specific state.- Parameters:
object
- the Objectstate
- the specified state
-
close
public void close() throws java.io.IOException
Closes the OutputStream.- Throws:
java.io.IOException
-OutputStream.close()
-
-