本文整理了Java中java.io.InputStreamReader.skip()
方法的一些代码示例,展示了InputStreamReader.skip()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。InputStreamReader.skip()
方法的具体详情如下:
包路径:java.io.InputStreamReader
类名称:InputStreamReader
方法名:skip
暂无
代码示例来源:origin: com.thoughtworks.xstream/xstream
/**
* @see java.io.Reader#skip(long)
*/
public long skip(final long n) throws IOException {
return reader.skip(n);
}
代码示例来源:origin: edu.internet2.middleware.grouper/grouperClient
/**
* @see java.io.Reader#skip(long)
*/
public long skip(final long n) throws IOException {
return reader.skip(n);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream
/**
* @see java.io.Reader#skip(long)
*/
public long skip(final long n) throws IOException {
return reader.skip(n);
}
代码示例来源:origin: org.jvnet.hudson/xstream
/**
* @see java.io.Reader#skip(long)
*/
public long skip(final long n) throws IOException {
return reader.skip(n);
}
代码示例来源:origin: x-stream/xstream
@Override
public long skip(final long n) throws IOException {
return reader.skip(n);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8
/**
* @see java.io.Reader#skip(long)
*/
public long skip(final long n) throws IOException {
return reader.skip(n);
}
代码示例来源:origin: com.haulmont.thirdparty/xstream
/**
* @see java.io.Reader#skip(long)
*/
public long skip(final long n) throws IOException {
return reader.skip(n);
}
代码示例来源:origin: org.sonatype.nexus.xstream/xstream
/**
* @see java.io.Reader#skip(long)
*/
public long skip(final long n) throws IOException {
return reader.skip(n);
}
代码示例来源:origin: apache/servicemix-bundles
/**
* @see java.io.Reader#skip(long)
*/
public long skip(final long n) throws IOException {
return reader.skip(n);
}
代码示例来源:origin: ovea-deprecated/jetty-session-redis
/**
* @see java.io.Reader#skip(long)
*/
public long skip(final long n) throws IOException {
return reader.skip(n);
}
代码示例来源:origin: OpenGamma/Strata
@Override
public long skip(long n) throws IOException {
return underlying.skip(n);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-groovy-editor
long bytesSkipped = 0;
do {
bytesSkipped = fisreader.skip(bytesToSkip);
bytesToSkip -= bytesSkipped;
} while ((bytesToSkip > 0) && (bytesSkipped > 0));
代码示例来源:origin: eclipse/eclipse.jdt.ls
private static int getFileLength(IFile file) throws CoreException {
// Cannot use file buffers here, since they are not yet in sync at this point.
InputStream contents= file.getContents();
InputStreamReader reader;
try {
reader= new InputStreamReader(contents, file.getCharset());
} catch (UnsupportedEncodingException e) {
JavaLanguageServerPlugin.logException(e.getMessage(), e);
reader= new InputStreamReader(contents);
}
try {
return (int) reader.skip(Integer.MAX_VALUE);
} catch (IOException e) {
throw new CoreException(new Status(IStatus.ERROR, IConstants.PLUGIN_ID, e.getMessage(), e));
} finally {
try {
reader.close();
} catch (IOException e) {
}
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
private static int getFileLength(IFile file) throws CoreException {
// Cannot use file buffers here, since they are not yet in sync at this point.
InputStream contents= file.getContents();
InputStreamReader reader;
try {
reader= new InputStreamReader(contents, file.getCharset());
} catch (UnsupportedEncodingException e) {
JavaPlugin.log(e);
reader= new InputStreamReader(contents);
}
try {
return (int) reader.skip(Integer.MAX_VALUE);
} catch (IOException e) {
throw new CoreException(new Status(IStatus.ERROR, Corext.getPluginId(), e.getMessage(), e));
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
private static int getFileLength(IFile file) throws CoreException {
// Cannot use file buffers here, since they are not yet in sync at this point.
InputStream contents= file.getContents();
InputStreamReader reader;
try {
reader= new InputStreamReader(contents, file.getCharset());
} catch (UnsupportedEncodingException e) {
JavaPlugin.log(e);
reader= new InputStreamReader(contents);
}
try {
return (int) reader.skip(Integer.MAX_VALUE);
} catch (IOException e) {
throw new CoreException(new Status(IStatus.ERROR, Corext.getPluginId(), e.getMessage(), e));
} finally {
try {
reader.close();
} catch (IOException e) {
}
}
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
private static int getFileLength(IFile file) throws CoreException {
// Cannot use file buffers here, since they are not yet in sync at this point.
InputStream contents= file.getContents();
InputStreamReader reader;
try {
reader= new InputStreamReader(contents, file.getCharset());
} catch (UnsupportedEncodingException e) {
JavaPlugin.log(e);
reader= new InputStreamReader(contents);
}
try {
return (int) reader.skip(Integer.MAX_VALUE);
} catch (IOException e) {
throw new CoreException(new Status(IStatus.ERROR, Corext.getPluginId(), e.getMessage(), e));
} finally {
try {
reader.close();
} catch (IOException e) {
}
}
}
代码示例来源:origin: GeoODK/collect
while (isr.skip(count) == count)
内容来源于网络,如有侵权,请联系作者删除!