1 46 50 package org.mr.core.util.byteable; 51 52 import org.mr.core.util.ObjectPool; 53 54 62 public class ByteableInputStreamPool extends ObjectPool { 63 64 private static ByteableInputStreamPool instance = new ByteableInputStreamPool(20); 65 66 67 private ByteableInputStreamPool(int sizeOfPool){ 68 super(sizeOfPool , "ByteableInputStreamPool"); 69 } 70 71 public static ByteableInputStreamPool getInstance(){ 72 return instance; 73 } 75 76 79 public final Object newInstance() { 80 return new ByteableInputStream(); 81 } 82 83 86 public String getObjectInPoolClassName() { 87 88 return "ByteableInputStreamPool"; 89 } 90 } 91 | Popular Tags |