类java.io.FilterReader源码实例Demo

下面列出了怎么用java.io.FilterReader的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: spliceengine   文件: TemporaryClob.java
/**
 * @see #getReader
 */
public Reader getInternalReader(long characterPosition)
        throws IOException, SQLException {
    if (this.internalReader == null) {
        // getCSD obtains a descriptor for the stream to allow the reader
        // to configure itself.
        this.internalReader = new UTF8Reader(getCSD(), conChild,
                conChild.getConnectionSynchronization());
        this.unclosableInternalReader =
                new FilterReader(this.internalReader) {
                    public void close() {
                        // Do nothing.
                        // Stream will be closed when the Clob is released.
                    }
                };
    }
    try {
        this.internalReader.reposition(characterPosition);
    } catch (StandardException se) {
        throw Util.generateCsSQLException(se);
    }
    return this.unclosableInternalReader;
}
 
源代码2 项目: FHIR   文件: JsonSupport.java
public static Reader nonClosingReader(Reader reader) {
    return new FilterReader(reader) {
        @Override
        public void close() {
            // do nothing
        }
    };
}
 
源代码3 项目: pushfish-android   文件: DefaultCopySpec.java
public CopySpec filter(final Class<? extends FilterReader> filterType) {
    copyActions.add(new Action<FileCopyDetails>() {
        public void execute(FileCopyDetails fileCopyDetails) {
            fileCopyDetails.filter(filterType);
        }
    });
    return this;
}
 
源代码4 项目: pushfish-android   文件: DefaultCopySpec.java
public CopySpec filter(final Map<String, ?> properties, final Class<? extends FilterReader> filterType) {
    copyActions.add(new Action<FileCopyDetails>() {
        public void execute(FileCopyDetails fileCopyDetails) {
            fileCopyDetails.filter(properties, filterType);
        }
    });
    return this;
}
 
源代码5 项目: pushfish-android   文件: DefaultCopySpec.java
public CopySpec filter(final Class<? extends FilterReader> filterType) {
    actions.add(new Action<FileCopyDetails>() {
        public void execute(FileCopyDetails fileCopyDetails) {
            fileCopyDetails.filter(filterType);
        }
    });
    return this;
}
 
源代码6 项目: pushfish-android   文件: DefaultCopySpec.java
public CopySpec filter(final Map<String, ?> properties, final Class<? extends FilterReader> filterType) {
    actions.add(new Action<FileCopyDetails>() {
        public void execute(FileCopyDetails fileCopyDetails) {
            fileCopyDetails.filter(properties, filterType);
        }
    });
    return this;
}
 
源代码7 项目: netbeans   文件: JShellEnvironment.java
public InputStream getInputStream() throws IOException {
    if (inputOutput == null) {
        throw new IllegalStateException("not started");
    }
    return new ReaderInputStream(
            new FilterReader(inputOutput.getIn()) {
                @Override
                public void close() throws IOException {
                    // do not close the input, JShell may be reset.
                }
            }, "UTF-8" // NOI18N
    );
}
 
源代码8 项目: waterdrop   文件: Parseable.java
private static Reader doNotClose(Reader input) {
    return new FilterReader(input) {
        @Override
        public void close() {
            // NOTHING.
        }
    };
}
 
源代码9 项目: lucene-solr   文件: SafeXMLParsing.java
/** Parses the given InputStream as XML, disabling any external entities with secure processing enabled.
 * The given Reader is not closed. */
public static Document parseUntrustedXML(Logger log, Reader reader) throws SAXException, IOException {
  final InputSource is = new InputSource(new FilterReader(reader) {
    @Override public void close() {}
  });
  is.setSystemId(SYSTEMID_UNTRUSTED);
  return getUntrustedDocumentBuilder(log).parse(is);
}
 
源代码10 项目: Pushjet-Android   文件: DefaultCopySpec.java
public CopySpec filter(final Class<? extends FilterReader> filterType) {
    copyActions.add(new Action<FileCopyDetails>() {
        public void execute(FileCopyDetails fileCopyDetails) {
            fileCopyDetails.filter(filterType);
        }
    });
    return this;
}
 
源代码11 项目: Pushjet-Android   文件: DefaultCopySpec.java
public CopySpec filter(final Map<String, ?> properties, final Class<? extends FilterReader> filterType) {
    copyActions.add(new Action<FileCopyDetails>() {
        public void execute(FileCopyDetails fileCopyDetails) {
            fileCopyDetails.filter(properties, filterType);
        }
    });
    return this;
}
 
源代码12 项目: Pushjet-Android   文件: DefaultCopySpec.java
public CopySpec filter(final Class<? extends FilterReader> filterType) {
    actions.add(new Action<FileCopyDetails>() {
        public void execute(FileCopyDetails fileCopyDetails) {
            fileCopyDetails.filter(filterType);
        }
    });
    return this;
}
 
源代码13 项目: Pushjet-Android   文件: DefaultCopySpec.java
public CopySpec filter(final Map<String, ?> properties, final Class<? extends FilterReader> filterType) {
    actions.add(new Action<FileCopyDetails>() {
        public void execute(FileCopyDetails fileCopyDetails) {
            fileCopyDetails.filter(properties, filterType);
        }
    });
    return this;
}
 
源代码14 项目: j2objc   文件: OldFilterReaderTest.java
public void test_ConstructorLjava_io_Reader() {

        FilterReader myReader = null;

        called = true;

        try {
            myReader = new MyFilterReader(null);
            fail("NullPointerException expected.");
        } catch (NullPointerException e) {
            // expected
        }
    }
 
源代码15 项目: PlayerVaults   文件: Parseable.java
private static Reader doNotClose(Reader input) {
    return new FilterReader(input) {
        @Override
        public void close() {
            // NOTHING.
        }
    };
}
 
源代码16 项目: pushfish-android   文件: AbstractCopyTask.java
/**
 * {@inheritDoc}
 */
public AbstractCopyTask filter(Map<String, ?> properties, Class<? extends FilterReader> filterType) {
    getMainSpec().filter(properties, filterType);
    return this;
}
 
源代码17 项目: pushfish-android   文件: AbstractCopyTask.java
/**
 * {@inheritDoc}
 */
public AbstractCopyTask filter(Class<? extends FilterReader> filterType) {
    getMainSpec().filter(filterType);
    return this;
}
 
源代码18 项目: pushfish-android   文件: CopySpecWrapper.java
public CopySpec filter(Map<String, ?> properties, Class<? extends FilterReader> filterType) {
    delegate.filter(properties, filterType);
    return this;
}
 
源代码19 项目: pushfish-android   文件: CopySpecWrapper.java
public CopySpec filter(Class<? extends FilterReader> filterType) {
    delegate.filter(filterType);
    return this;
}
 
public CopySpec filter(Map<String, ?> properties, Class<? extends FilterReader> filterType) {
    return getDelegateCopySpec().filter(properties, filterType);
}
 
public CopySpec filter(Class<? extends FilterReader> filterType) {
    return getDelegateCopySpec().filter(filterType);
}
 
public ContentFilterable filter(Map<String, ?> properties, Class<? extends FilterReader> filterType) {
    throw new UnsupportedOperationException();
}
 
public ContentFilterable filter(Class<? extends FilterReader> filterType) {
    throw new UnsupportedOperationException();
}
 
源代码24 项目: pushfish-android   文件: AbstractCopyTask.java
/**
 * {@inheritDoc}
 */
public AbstractCopyTask filter(Map<String, ?> properties, Class<? extends FilterReader> filterType) {
    getMainSpec().filter(properties, filterType);
    return this;
}
 
源代码25 项目: pushfish-android   文件: AbstractCopyTask.java
/**
 * {@inheritDoc}
 */
public AbstractCopyTask filter(Class<? extends FilterReader> filterType) {
    getMainSpec().filter(filterType);
    return this;
}
 
源代码26 项目: pushfish-android   文件: CopySpecWrapper.java
public CopySpec filter(Map<String, ?> properties, Class<? extends FilterReader> filterType) {
    delegate.filter(properties, filterType);
    return this;
}
 
源代码27 项目: pushfish-android   文件: CopySpecWrapper.java
public CopySpec filter(Class<? extends FilterReader> filterType) {
    delegate.filter(filterType);
    return this;
}
 
public CopySpec filter(Map<String, ?> properties, Class<? extends FilterReader> filterType) {
    return getDelegateCopySpec().filter(properties, filterType);
}
 
public CopySpec filter(Class<? extends FilterReader> filterType) {
    return getDelegateCopySpec().filter(filterType);
}
 
public ContentFilterable filter(Map<String, ?> properties, Class<? extends FilterReader> filterType) {
    throw new UnsupportedOperationException();
}
 
 类所在包
 同包方法