commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duncan Jones <>
Subject [io] Addition of a TrailerInputStream class?
Date Tue, 28 Jan 2014 21:18:10 GMT
Hi all,

For a project of mine I developed a class named TrailerInputStream,
which reads from an InputStream whilst retaining a buffer of N bytes
(the trailer), Once the stream has been exhausted, the final N bytes
are obtained by calling the getTrailer() method.

I found it helpful for reading structured data in which the main
contents of the stream are processed differently to the trailer at the

Is there a place for something like this in IO? I can imagine a
symmetric class called HeaderInputStream as well.

Current code is at
It's not yet in a fit state for submission, but isn't far away in
terms of comment quality and unit tests.

Kind regards,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message