Add method slice(int)

The slice() is an efficient operation when an user reads a content
as DecodeBuffer from its original buffer. This method shares the
internal content instance.
Use DecodeBuffer#slice() instead of using copy

The instantiation and copy operation has more expensive than slice().
These operations are the same if no more data is appended to DecodeBuffer.
Update definitions of checkstyle
Fix field name in test cases