1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
OutputStream output = con.getOutputStream();
DataOutputStream dos = new DataOutputStream(output);
dos.writeUTF("setValideGrille");
output.flush();
JAXBContext context = JAXBContext.newInstance(Joueur.class, ObjectFactory.class);
Marshaller encoder = context.createMarshaller();
encoder.marshal(joueur, output);
output.flush();
context = JAXBContext.newInstance(Grille.class, ObjectFactory.class);
encoder = context.createMarshaller();
encoder.marshal(grille, output);
output.flush(); |
Partager