Skip to content

Package: ReadIterator

ReadIterator

nameinstructionbranchcomplexitylinemethod
ReadIterator()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
ReadIterator(Iterator)
M: 11 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%
hasNext()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
next()
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
remove()
M: 7 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3: *
4: * Copyright (c) 2004-2018 Oracle and/or its affiliates. All rights reserved.
5: *
6: * Oracle licenses this file to You under the Apache License, Version 2.0
7: * (the "License"); you may not use this file except in compliance with
8: * the License. You may obtain a copy of the License at
9: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: package com.sun.xml.fastinfoset.stax.events;
20:
21: import java.util.Iterator;
22: import com.sun.xml.fastinfoset.CommonResourceBundle;
23:
24: public class ReadIterator implements Iterator {
25:
26: Iterator iterator = EmptyIterator.getInstance();
27:
28: public ReadIterator(){
29: }
30:
31: public ReadIterator(Iterator iterator){
32:• if (iterator != null) {
33: this.iterator = iterator;
34: }
35: }
36:
37: public boolean hasNext() {
38: return iterator.hasNext();
39: }
40:
41: public Object next() {
42: return iterator.next();
43: }
44:
45: public void remove() {
46: throw new UnsupportedOperationException(CommonResourceBundle.getInstance().getString("message.readonlyList"));
47: }
48:
49:
50: }