Question: The class `java.io.FileReader` not found in Java ME.

I need this in order to get the file and then parse it with an xml parser.

Anyone know any alternatives for this class?

\*added
using CLDC profile. The xml file to be read is in the JAR.

Answer: 
Well, I'd call this bit:

```
private static Injector injector = Guice.createInjector(new Guicer());

public static void setInjector(Injector injector) {
    Guicer.injector = injector;
}

```

a write-only global variable. 

And here:

```
public static <T> T getInstance(Class<T> c) {
    return injector.getInstance(c);
}

```

you replace an instance method with a global function. So you've basically got a global variable, which anyone can write, but you can only call the one method on it. Since injector has more in its interface, it is possibly some kind of restricted façade. 

But they are more idioms than a pattern - a pattern would also describe what it is trying to achieve in terms of desired behaviour, whereas an idiom is how you go about doing something in code. 

Unless it is a pattern which has a very strong connection to a single idiom, then it is impossible to reverse-engineer patterns from code.
This snippet doesn't represent a design-pattern from the [catalog](http://en.wikipedia.org/wiki/Design_pattern_%28computer_science%29).
Patterns (except Singleton) usually represent more complex relationship than setting a changeable default implementation of something.