106 }
107
108 @Override
109 public FileSystemProvider provider() {
110 return provider;
111 }
112
113 @Override
114 public Iterable<Path> getRootDirectories() {
115 return Collections.singleton(getRootPath());
116 }
117
118 @Override
119 public JrtPath getPath(String first, String... more) {
120 if (more.length == 0) {
121 return new JrtPath(this, first);
122 }
123 StringBuilder sb = new StringBuilder();
124 sb.append(first);
125 for (String path : more) {
126 if (path.length() > 0) {
127 if (sb.length() > 0) {
128 sb.append('/');
129 }
130 sb.append(path);
131 }
132 }
133 return new JrtPath(this, sb.toString());
134 }
135
136 @Override
137 public final boolean isReadOnly() {
138 return true;
139 }
140
141 @Override
142 public final UserPrincipalLookupService getUserPrincipalLookupService() {
143 throw new UnsupportedOperationException();
144 }
145
146 @Override
|
106 }
107
108 @Override
109 public FileSystemProvider provider() {
110 return provider;
111 }
112
113 @Override
114 public Iterable<Path> getRootDirectories() {
115 return Collections.singleton(getRootPath());
116 }
117
118 @Override
119 public JrtPath getPath(String first, String... more) {
120 if (more.length == 0) {
121 return new JrtPath(this, first);
122 }
123 StringBuilder sb = new StringBuilder();
124 sb.append(first);
125 for (String path : more) {
126 if (!path.isEmpty()) {
127 if (sb.length() > 0) {
128 sb.append('/');
129 }
130 sb.append(path);
131 }
132 }
133 return new JrtPath(this, sb.toString());
134 }
135
136 @Override
137 public final boolean isReadOnly() {
138 return true;
139 }
140
141 @Override
142 public final UserPrincipalLookupService getUserPrincipalLookupService() {
143 throw new UnsupportedOperationException();
144 }
145
146 @Override
|