#2731 ChunkInStream.avail()

SlimerDude Mon 11 Feb

This isn't affecting me in anyway, just something I noticed...

The docs for InStream.avail() say:

Return the number of bytes available on input stream without blocking. Return zero if no bytes available or it is unknown. Throw IOErr on error.

But when I called avail() from a ChunkInStream I got:

sys::UnsupportedErr: fan.web.ChunkInStream wraps null InStream
  fan.sys.InStream.avail (InStream.java:102)
  ...

As unsupported is kinda like unknown I thought perhaps I'd receive zero instead.

Login or Signup to reply.