|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
SimpleFileStreamFactory.java | - | 25% | 25% | 25% |
|
1 |
/*
|
|
2 |
* Joey and its relative products are published under the terms
|
|
3 |
* of the Apache Software License.
|
|
4 |
*/
|
|
5 |
package org.asyrinx.brownie.core.io.sf;
|
|
6 |
|
|
7 |
import java.io.FileInputStream;
|
|
8 |
import java.io.FileOutputStream;
|
|
9 |
import java.io.IOException;
|
|
10 |
import java.io.InputStream;
|
|
11 |
import java.io.OutputStream;
|
|
12 |
|
|
13 |
/**
|
|
14 |
* @author Akima
|
|
15 |
*/
|
|
16 |
public class SimpleFileStreamFactory extends AbstractFileStreamFactory { |
|
17 |
|
|
18 |
/**
|
|
19 |
* Constructor for SimpleFileStreamLoader.
|
|
20 |
*/
|
|
21 | 3 |
public SimpleFileStreamFactory() {
|
22 | 3 |
super();
|
23 |
} |
|
24 |
|
|
25 |
/**
|
|
26 |
* @see org.asyrinx.brownie.core.io.sf.AbstractFileStreamFactory#toFilePath(java.lang.String)
|
|
27 |
*/
|
|
28 | 0 |
public String toFilePath(String fileName) {
|
29 | 0 |
return fileName;
|
30 |
} |
|
31 |
|
|
32 |
/**
|
|
33 |
*/
|
|
34 | 0 |
public InputStream newInput(String fileName) throws IOException { |
35 | 0 |
return new FileInputStream(fileName); |
36 |
} |
|
37 |
|
|
38 |
/**
|
|
39 |
*/
|
|
40 | 0 |
public OutputStream newOutput(String fileName) throws IOException { |
41 | 0 |
return new FileOutputStream(fileName); |
42 |
} |
|
43 |
|
|
44 |
} |
|