281 } else if (category == RequestingUserName.class) { |
281 } else if (category == RequestingUserName.class) { |
282 return new RequestingUserName("", null); |
282 return new RequestingUserName("", null); |
283 } else if (category == OrientationRequested.class) { |
283 } else if (category == OrientationRequested.class) { |
284 if (flavor == null || |
284 if (flavor == null || |
285 flavor.equals(DocFlavor.SERVICE_FORMATTED.PAGEABLE) || |
285 flavor.equals(DocFlavor.SERVICE_FORMATTED.PAGEABLE) || |
286 flavor.equals(DocFlavor.SERVICE_FORMATTED.PRINTABLE)) { |
286 flavor.equals(DocFlavor.SERVICE_FORMATTED.PRINTABLE) || |
|
287 flavor.equals(DocFlavor.INPUT_STREAM.GIF) || |
|
288 flavor.equals(DocFlavor.INPUT_STREAM.JPEG) || |
|
289 flavor.equals(DocFlavor.INPUT_STREAM.PNG) || |
|
290 flavor.equals(DocFlavor.BYTE_ARRAY.GIF) || |
|
291 flavor.equals(DocFlavor.BYTE_ARRAY.JPEG) || |
|
292 flavor.equals(DocFlavor.BYTE_ARRAY.PNG) || |
|
293 flavor.equals(DocFlavor.URL.GIF) || |
|
294 flavor.equals(DocFlavor.URL.JPEG) || |
|
295 flavor.equals(DocFlavor.URL.PNG)) { |
287 OrientationRequested []arr = new OrientationRequested[3]; |
296 OrientationRequested []arr = new OrientationRequested[3]; |
288 arr[0] = OrientationRequested.PORTRAIT; |
297 arr[0] = OrientationRequested.PORTRAIT; |
289 arr[1] = OrientationRequested.LANDSCAPE; |
298 arr[1] = OrientationRequested.LANDSCAPE; |
290 arr[2] = OrientationRequested.REVERSE_LANDSCAPE; |
299 arr[2] = OrientationRequested.REVERSE_LANDSCAPE; |
291 return arr; |
300 return arr; |