LEFT | RIGHT |
1 // Copyright 2007 Google Inc. All Rights Reserved. | 1 // Copyright 2007 Google Inc. All Rights Reserved. |
2 // Licensed under the Apache License, Version 2.0 (the "License"); | 2 // Licensed under the Apache License, Version 2.0 (the "License"); |
3 // you may not use this file except in compliance with the License. | 3 // you may not use this file except in compliance with the License. |
4 // You may obtain a copy of the License at | 4 // You may obtain a copy of the License at |
5 // | 5 // |
6 // http://www.apache.org/licenses/LICENSE-2.0 | 6 // http://www.apache.org/licenses/LICENSE-2.0 |
7 // | 7 // |
8 // Unless required by applicable law or agreed to in writing, software | 8 // Unless required by applicable law or agreed to in writing, software |
9 // distributed under the License is distributed on an "AS IS" BASIS, | 9 // distributed under the License is distributed on an "AS IS" BASIS, |
10 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 10 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 throw new RuntimeException("UTF-8 should be supported.", ex); | 94 throw new RuntimeException("UTF-8 should be supported.", ex); |
95 } | 95 } |
96 } | 96 } |
97 }; | 97 }; |
98 | 98 |
99 CharProducer p = CharProducer.Factory.create( | 99 CharProducer p = CharProducer.Factory.create( |
100 new StringReader(cajaInput), new InputSource(inputUri)); | 100 new StringReader(cajaInput), new InputSource(inputUri)); |
101 rewriter.rewrite(inputUri, p, uriCallback, "canvas", output); | 101 rewriter.rewrite(inputUri, p, uriCallback, "canvas", output); |
102 } | 102 } |
103 } | 103 } |
LEFT | RIGHT |