Fixed read(byte[],int,int) method to read the most possible and corrected a potentially bad seek on setLength(long).
Fixed read(byte[],int,int) method to read the most possible and corrected a potentially bad seek on setLength(long).

jfthibert/sagetv,jusjoken/sagetv,webernissle/sagetv,skiingwiz/sagetv,jusjoken/sagetv,tmiranda1962/sagetv-1,google/sagetv,OpenSageTV/sagetv,jason-bean/sagetv,tmiranda1962/sagetv-1,BartokW/sagetv,skiingwiz/sagetv,jlverhagen/sagetv,google/sagetv,stuckless/sagetv,enternoescape/sagetv,skiingwiz/sagetv,JREkiwi/sagetv,webernissle/sagetv,google/sagetv,OpenSageTV/sagetv,JustFred51/sagetv,google/sagetv,gasinger/sagetv,enternoescape/sagetv,jlverhagen/sagetv,jfthibert/sagetv,jusjoken/sagetv,jlverhagen/sagetv,stuckless/sagetv,gasinger/sagetv,gasinger/sagetv,jfthibert/sagetv,JustFred51/sagetv,enternoescape/sagetv,jfthibert/sagetv,JustFred51/sagetv,enternoescape/sagetv,jason-bean/sagetv,gasinger/sagetv,jason-bean/sagetv,jusjoken/sagetv,BartokW/sagetv,JREkiwi/sagetv,BartokW/sagetv,webernissle/sagetv,tmiranda1962/sagetv-1,OpenSageTV/sagetv,OpenSageTV/sagetv,stuckless/sagetv,jlverhagen/sagetv,webernissle/sagetv,jason-bean/sagetv,BartokW/sagetv,andyvshr/sagetv,JREkiwi/sagetv,tmiranda1962/sagetv-1,JustFred51/sagetv,stuckless/sagetv,JREkiwi/sagetv,andyvshr/sagetv,skiingwiz/sagetv,andyvshr/sagetv,andyvshr/sagetv