@Override
	public void setUp() throws Exception {
    """
	Reads the given parameters and initializes the values of
	{@link #getEncoding()} and {@link #getFile()}.
	
	@throws java.lang.Exception General Exception, e.g. the file cannot be opened.
    """
		super.setUp();

        FileFixtureHelper helper = DependencyManager.getOrCreate(FileFixtureHelper.class);
        if (encoding == null) {
            encoding = helper.getEncoding();
        }

		String fileName = getArg("file");
		if (fileName == null) {
			File provider = helper.getDirectory();

			String dir = getArg("dir");
			if (dir != null) {
				provider = new File(dir);
			}

			if (provider == null) {
				throw new RuntimeException("No directory selected");
			}

			String pattern = helper.getPattern();
			pattern = getArg("pattern", pattern);

			FileSelector fs = new FileSelector(provider, pattern);
			file = wrapper.wrap(fs.getFirstFile());
		} else {
			file = wrapper.wrap(new File(fileName).getAbsoluteFile());
		}
	}
@Override
	public void setUp() throws Exception {
		super.setUp();

        FileFixtureHelper helper = DependencyManager.getOrCreate(FileFixtureHelper.class);
        if (encoding == null) {
            encoding = helper.getEncoding();
        }

		String fileName = getArg("file");
		if (fileName == null) {
			File provider = helper.getDirectory();

			String dir = getArg("dir");
			if (dir != null) {
				provider = new File(dir);
			}

			if (provider == null) {
				throw new RuntimeException("No directory selected");
			}

			String pattern = helper.getPattern();
			pattern = getArg("pattern", pattern);

			FileSelector fs = new FileSelector(provider, pattern);
			file = wrapper.wrap(fs.getFirstFile());
		} else {
			file = wrapper.wrap(new File(fileName).getAbsoluteFile());
		}
	}
@ Override public void setUp ( ) throws Exception { super . setUp ( ) ; FileFixtureHelper helper = DependencyManager . getOrCreate ( FileFixtureHelper . class ) ; if ( encoding == null ) { encoding = helper . getEncoding ( ) ; } String fileName = getArg ( "file" ) ; if ( fileName == null ) { File provider = helper . getDirectory ( ) ; String dir = getArg ( "dir" ) ; if ( dir != null ) { provider = new File ( dir ) ; } if ( provider == null ) { throw new RuntimeException ( "No directory selected" ) ; } String pattern = helper . getPattern ( ) ; pattern = getArg ( "pattern" , pattern ) ; FileSelector fs = new FileSelector ( provider , pattern ) ; file = wrapper . wrap ( fs . getFirstFile ( ) ) ; } else { file = wrapper . wrap ( new File ( fileName ) . getAbsoluteFile ( ) ) ; } }
Reads the given parameters and initializes the values of
{@link #getEncoding()} and {@link #getFile()}.

@throws java.lang.Exception General Exception, e.g. the file cannot be opened.
Reads the given parameters and initializes the values of { @link #getEncoding () } and { @link #getFile () } .