public GifDrawable(InputStream stream) throws IOException {
  if (stream == null)   throw new NullPointerException("Source is null");
  if (!stream.markSupported())   throw new IllegalArgumentException("InputStream does not support marking");
  mGifInfoPtr=openStream(mMetaData,stream,false);
  mColors=new int[mMetaData[0] * mMetaData[1]];
  mInputSourceLength=-1L;
}

public GifDrawable ( InputStream stream ) throws IOException { if ( stream == null ) throw new NullPointerException ( "Source is null" ) ; if ( ! stream . markSupported ( ) ) throw new IllegalArgumentException ( "InputStream does not support marking" ) ; mGifInfoPtr = openStream ( mMetaData , stream , false ) ; mColors = new int [ mMetaData [ 0 ] * mMetaData [ 1 ] ] ; mInputSourceLength = - 1L ; }
creates drawable from inputstream . inputstream must support marking , illegalargumentexception will be thrown otherwise .
