1 package org.eclipse.jetty.io; 2 3 public class BuffersFactory 4 { 5 public static Buffers newBuffers(Buffers.Type headerType, int headerSize, Buffers.Type bufferType, int bufferSize, Buffers.Type otherType,int maxSize) 6 { 7 if (maxSize>=0) 8 return new PooledBuffers(headerType,headerSize,bufferType,bufferSize,otherType,maxSize); 9 return new ThreadLocalBuffers(headerType,headerSize,bufferType,bufferSize,otherType); 10 } 11 }