/** * This method is used to add an additional chunk size to the * internal array. Resizing of the internal array is required as * the consumed bytes may exceed the initial size of the array. * In such a scenario the array is expanded the chunk size. * * @param size this is the minimum size to expand the array to */ @Override protected void resize(int size) throws IOException { if(size > limit) { throw new IOException("Header has exceeded maximum size"); } super.resize(size); }
/** * This method is used to add an additional chunk size to the * internal array. Resizing of the internal array is required as * the consumed bytes may exceed the initial size of the array. * In such a scenario the array is expanded the chunk size. * * @param size this is the minimum size to expand the array to */ @Override protected void resize(int size) throws IOException { if(size > limit) { throw new IOException("Header has exceeded maximum size"); } super.resize(size); }
/** * This method is used to add an additional chunk size to the * internal array. Resizing of the internal array is required as * the consumed bytes may exceed the initial size of the array. * In such a scenario the array is expanded the chunk size. * * @param size this is the minimum size to expand the array to */ @Override protected void resize(int size) throws IOException { if(size > limit) { throw new IOException("Header has exceeded maximum size"); } super.resize(size); }