No pones demasiada informacion y se hace mas dificil poder guiarte, pero suponiendo que tienes ya una clase "Vehiculo" serializable con sus atributos incluidos, solo tendrias que leer el objeto serializado usando un ObjectInputStream
Fuentes:
https://examples.javacodegeeks.com/core-java/io/file/how-to-read-an-object-from-file-in-java/
http://www.javapractices.com/topic/TopicAction.do?Id=57
https://stackoverflow.com/questions/30413227/how-to-read-and-write-an-object-to-a-text-file-in-java
Saludos
Código (java) [Seleccionar]
public Object ReadObjectFromFile(String filepath)
{
try
{
FileInputStream fileIn = new FileInputStream(filepath);
ObjectInputStream objectIn = new ObjectInputStream(fileIn);
Object obj = objectIn.readObject();
System.out.println("The Object has been read from the file");
objectIn.close();
return obj;
} catch (Exception ex) {
ex.printStackTrace();
return null;
}
}
Fuentes:
https://examples.javacodegeeks.com/core-java/io/file/how-to-read-an-object-from-file-in-java/
http://www.javapractices.com/topic/TopicAction.do?Id=57
https://stackoverflow.com/questions/30413227/how-to-read-and-write-an-object-to-a-text-file-in-java
Saludos