Stax2ByteArraySource bs = (Stax2ByteArraySource) ss;
return StreamReaderImpl.construct(ByteSourceBootstrapper.construct
(cfg, bs.getBuffer(), bs.getBufferStart(), bs.getBufferLength()));
}
if (ss instanceof Stax2CharArraySource) {
Stax2CharArraySource cs = (Stax2CharArraySource) ss;
return StreamReaderImpl.construct(CharSourceBootstrapper.construct
(cfg, cs.getBuffer(), cs.getBufferStart(), cs.getBufferLength()));
}
/* Ok, and this is the default, if we don't know a better
* type-specific method:
*/