Package it.unimi.dsi.fastutil.io

Examples of it.unimi.dsi.fastutil.io.FastByteArrayInputStream


    return new InputBitStream( index );
  }
 
  @Override
  public InputStream getInputStream() {
    return new FastByteArrayInputStream( index );
  }
View Full Code Here


    return new InputBitStream( index );
  }
 
  @Override
  public InputStream getInputStream() {
    return new FastByteArrayInputStream( index );
  }
View Full Code Here

    return new InputBitStream( positions );
  }

  @Override
  public InputStream getPositionsInputStream() throws IOException {
    return new FastByteArrayInputStream( positions );
  }
View Full Code Here

  }
 
  public InputStream stream( final int index ) throws IOException {
    readDocument( index, -1, null );
    FastByteArrayInputStream[] is = new FastByteArrayInputStream[ NUM_FIELDS ];
    for( int i = 0; i < NUM_FIELDS; i++ ) is[ i ] = new FastByteArrayInputStream( buffer[ i ], 0, bufferSize[ i ] );
    return MultipleInputStream.getStream( is );
  }
View Full Code Here

  public void testReadResolve() throws IOException, ClassNotFoundException {
    TermProcessor t = DowncaseTermProcessor.getInstance();
    FastByteArrayOutputStream os = new FastByteArrayOutputStream();
    BinIO.storeObject( t, os );
    assertTrue( t == (TermProcessor)BinIO.loadObject( new FastByteArrayInputStream( os.array ) ) );
  }
View Full Code Here

      public WordReader wordReader( int field ) { throw new UnsupportedOperationException(); }
    };
  }

  public InputStream stream( final int index ) throws IOException {
    return new FastByteArrayInputStream( date[ index ].toString().getBytes( "ASCII" ) );
  }
View Full Code Here

  public Document document( final int index ) throws IOException {
    return factory.getDocument( stream( index ), metadata( index ) );
  }

  public InputStream stream( final int index ) throws IOException {
    return new FastByteArrayInputStream( document[ index ].getBytes( "UTF-8" ) );
  }
View Full Code Here

      public WordReader wordReader( int field ) { throw new UnsupportedOperationException(); }
    };
  }

  public InputStream stream( final int index ) throws IOException {
    return new FastByteArrayInputStream( Integer.toString( n [ index ] ).getBytes( "ASCII" ) );
  }
View Full Code Here

TOP

Related Classes of it.unimi.dsi.fastutil.io.FastByteArrayInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.