How to implement this subclass specifically to get around appending object file?
-
14-06-2021 - |
Pregunta
I was having trouble appending object file in my program. I found this SO answer.
However, I do not know how to subclass an AppendableObjectOutputStream
. Can anyone kindly teach me how in more detail?
Solución
class YourClass extends AppendableObjectOutputStream {
// any constructors required, if no default for Appendable
public AppendableObjectOutputStream(<your args here>) {
super(<other args here>);
}
// any methods you want to @Override here
}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow