RepositoryFileOutputStream extends ByteArrayOutputStream implements ISourcesStreamEvents { public void forceFlush( boolean forceFlush ) { this.forceFlush = forceFlush; } RepositoryFileOutputStream( final String path, final boolean autoCreateUniqueFileName,
      final boolean autoCreateDirStructure, final IUnifiedRepository repository, final boolean hidden );  RepositoryFileOutputStream( final Serializable id, final boolean autoCreateUniqueFileName,
      final boolean autoCreateDirStructure, final IUnifiedRepository repository, final boolean hidden );  RepositoryFileOutputStream( final RepositoryFile file, final boolean autoCreateUniqueFileName,
      final boolean autoCreateDirStructure, final IUnifiedRepository repository );  RepositoryFileOutputStream( final String path, final boolean autoCreateUniqueFileName,
      final boolean autoCreateDirStructure );  RepositoryFileOutputStream( final Serializable id, final boolean autoCreateUniqueFileName,
      final boolean autoCreateDirStructure );  RepositoryFileOutputStream( final RepositoryFile file, final boolean autoCreateUniqueFileName,
      final boolean autoCreateDirStructure );  RepositoryFileOutputStream( final String path );  RepositoryFileOutputStream( final String path, final boolean hidden );  RepositoryFileOutputStream( final RepositoryFile file );  RepositoryFileOutputStream( final Serializable id ); protected  RepositoryFileOutputStream( String path, String charsetName ); protected  RepositoryFileOutputStream( RepositoryFile file, String charsetName ); protected  RepositoryFileOutputStream( Serializable id, String charsetName ); void forceFlush( boolean forceFlush ); @Override void flush(); @Override void close(); String getFilePath(); void setFilePath( String path ); boolean getAutoCreateUniqueFileName(); boolean getAutoCreateDirStructure(); void setAutoCreateDirStructure( boolean autoCreateDirStructure ); void addListener( IStreamListener listener ); void setRepository( final IUnifiedRepository repository ); IUnifiedRepository getRepository(); String getCharsetName(); void setCharsetName( final String charsetName ); boolean isFlushed();  }
@Test public void testForceFlush() { RepositoryFileOutputStream repositoryFileOutputStream = new RepositoryFileOutputStream( "" ); assertTrue( getInternalState( repositoryFileOutputStream, "forceFlush" ) ); repositoryFileOutputStream.forceFlush( false ); assertFalse( getInternalState( repositoryFileOutputStream, "forceFlush" ) ); repositoryFileOutputStream.forceFlush( true ); assertTrue( getInternalState( repositoryFileOutputStream, "forceFlush" ) ); }