@ -2,6 +2,8 @@ package seng302.Networking.Utils;
import org.xml.sax.InputSource ;
import org.xml.sax.InputSource ;
import java.io.InputStream ;
/ * *
/ * *
* Created by fwy13 on 25 / 04 / 17.
* Created by fwy13 on 25 / 04 / 17.
* /
* /
@ -12,13 +14,13 @@ public class XMLMessage extends AC35Data{
private int xmlMsgSubType ;
private int xmlMsgSubType ;
private int sequenceNumber ;
private int sequenceNumber ;
private int xmlMsgLength ;
private int xmlMsgLength ;
private InputS ource xmlMessage ;
private InputS tream xmlMessage ;
public static int XMLTypeRegatta = 5 ;
public static int XMLTypeRegatta = 5 ;
public static int XMLTypeRace = 6 ;
public static int XMLTypeRace = 6 ;
public static int XMLTypeBoat = 7 ;
public static int XMLTypeBoat = 7 ;
public XMLMessage ( int ackNumber , long timeStamp , int xmlMsgSubType , int sequenceNumber , int xmlMsgLength , InputS ource xmlMessage ) {
public XMLMessage ( int ackNumber , long timeStamp , int xmlMsgSubType , int sequenceNumber , int xmlMsgLength , InputS tream xmlMessage ) {
super ( MessageType . XMLMESSAGE ) ;
super ( MessageType . XMLMESSAGE ) ;
this . ackNumber = ackNumber ;
this . ackNumber = ackNumber ;
this . timeStamp = timeStamp ;
this . timeStamp = timeStamp ;
@ -28,7 +30,7 @@ public class XMLMessage extends AC35Data{
this . xmlMessage = xmlMessage ;
this . xmlMessage = xmlMessage ;
}
}
public InputS ource getXmlMessage ( ) {
public InputS tream getXmlMessage ( ) {
return xmlMessage ;
return xmlMessage ;
}
}