protected static InputStream getStream(File file, int flags) throws IOException
	{
		InputStream input = new FileInputStream(file);
		if ((flags & NBTSerializer.BUFFERED) != 0)
		{
			input = new BufferedInputStream(input);
		}
		if ((flags & NBTSerializer.COMPRESSED) != 0)
		{
			input = new GZIPInputStream(input);
		}
		if ((flags & NBTSerializer.BUFFERED2) != 0)
		{
			input = new BufferedInputStream(input);
		}
		return input;
	}