View Javadoc

1   /*
2    * ByteToInputStreamConverter.java
3    *
4    * Created on 17 Май 2006 г., 11:42
5    */
6   
7   package org.weda.converter.impl;
8   
9   import java.io.ByteArrayInputStream;
10  import org.weda.converter.ValueTypeConverterException;
11  
12  /**
13   *
14   * @author Mikhail Titov
15   */
16  public class ByteToInputStreamConverter extends AbstractConverter {
17      
18      public Object convert(Class toType, Object value, String pattern) 
19          throws ValueTypeConverterException 
20      {
21          return new ByteArrayInputStream((byte[])value);        
22      }
23      
24  }