fileOutputStreamPlay = new FileOutputStream("playlist.xml");
encoderPlay = new XMLEncoder(fileOutputStreamPlay);
encoderPlay.writeObject(p);
encoderPlay.flush();
try{
fileOutputStreamPlay.close();
encoderPlay.close();
}catch (IOException ex){
ex.printStackTrace();
}