I was trying to extend ByteBuffer class to add a "getString" method to it. But I just can't make it work.
My class is also abstract. When I extend it I see an error "There is no default constructor available in java.nio.ByteBuffer". And I think
I understand why that happens as there is no public constructor in ByteBuffer class.
So how do I extend it? How can I add functionality to it?