139 private int type;
140
141 public OutputType(String nodeName, String description, int type) {
142 super(generalDestRoot, nodeName, description, false);
143 this.type = type;
144 }
145
146 public int getType() {
147 return type;
148 }
149
150 public String getAbbreviatedModifierDescription(Object value) {
151 return getModifierValueName(value);
152 }
153
154 public String getModifierValueName(Object val) {
155 return getNodeName();
156 }
157 }
158
159 protected static abstract class Context {
160 int size;
161 Object output;
162 int outputType;
163 OutputStream origStream;
164
165 Context(TestEnvironment env, Result result) {
166 size = env.getIntValue(sizeList);
167 if (hasImageIO) {
168 if (env.getModifier(useCacheTog) != null) {
169 ImageIO.setUseCache(env.isEnabled(useCacheTog));
170 }
171 }
172
173 OutputType t = (OutputType)env.getModifier(generalDestRoot);
174 outputType = t.getType();
175 }
176
177 void initOutput() {
178 if ((outputType == OUTPUT_FILE) ||
179 (outputType == OUTPUT_FILECHANNEL))
|
139 private int type;
140
141 public OutputType(String nodeName, String description, int type) {
142 super(generalDestRoot, nodeName, description, false);
143 this.type = type;
144 }
145
146 public int getType() {
147 return type;
148 }
149
150 public String getAbbreviatedModifierDescription(Object value) {
151 return getModifierValueName(value);
152 }
153
154 public String getModifierValueName(Object val) {
155 return getNodeName();
156 }
157 }
158
159 protected abstract static class Context {
160 int size;
161 Object output;
162 int outputType;
163 OutputStream origStream;
164
165 Context(TestEnvironment env, Result result) {
166 size = env.getIntValue(sizeList);
167 if (hasImageIO) {
168 if (env.getModifier(useCacheTog) != null) {
169 ImageIO.setUseCache(env.isEnabled(useCacheTog));
170 }
171 }
172
173 OutputType t = (OutputType)env.getModifier(generalDestRoot);
174 outputType = t.getType();
175 }
176
177 void initOutput() {
178 if ((outputType == OUTPUT_FILE) ||
179 (outputType == OUTPUT_FILECHANNEL))
|