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