diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2014-03-14 22:13:57 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2014-03-14 22:13:57 +0100 |
commit | beaaed4bc33977b4c61013a553563758eeff35c4 (patch) | |
tree | c59a8b972c34bde84a69895acde9d34fda73949a /sonar-channel/src/main/java/org/sonar/channel/Channel.java | |
parent | 9509868d743145761211e1ce74c26f01057cc67f (diff) | |
download | sonarqube-beaaed4bc33977b4c61013a553563758eeff35c4.tar.gz sonarqube-beaaed4bc33977b4c61013a553563758eeff35c4.zip |
SONAR-5128 Package a release version of sonar-channel
Diffstat (limited to 'sonar-channel/src/main/java/org/sonar/channel/Channel.java')
-rw-r--r-- | sonar-channel/src/main/java/org/sonar/channel/Channel.java | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/sonar-channel/src/main/java/org/sonar/channel/Channel.java b/sonar-channel/src/main/java/org/sonar/channel/Channel.java deleted file mode 100644 index a88a55130f4..00000000000 --- a/sonar-channel/src/main/java/org/sonar/channel/Channel.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * SonarQube, open source software quality management tool. - * Copyright (C) 2008-2014 SonarSource - * mailto:contact AT sonarsource DOT com - * - * SonarQube is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * SonarQube is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -package org.sonar.channel; - -public abstract class Channel<O> { - - /** - * Tries to consume the character stream at the current reading cursor position (provided by the {@link org.sonar.channel.CodeReader}). If - * the character stream is consumed the method must return true and the OUTPUT object can be fed. - * - * @param code - * the handle on the input character stream - * @param output - * the OUTPUT that can be optionally fed by the Channel - * @return false if the Channel doesn't want to consume the character stream, true otherwise. - */ - public abstract boolean consume(CodeReader code, O output); -} |