th;
}
class ByteDataSource implements DataSource
{
byte bytes;
String contentType;
String name;
ByteDataSource(byte bytes,String contentType,String name)
{
this.bytes=bytes;
this.contentType=contentType;
this.name=name;
}
public String getContentType()
{
return contentType;
}
public InputStream getInputStream()
{
return new ByteArrayInputStream(bytes,0,bytes.length-2);
}
public String getName()
{
return name;
}
public OutputStream getOutputStream() throws IOException
{
throw new FileNotFoundException();
}
}//end of class
}