mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-16 18:47:33 -05:00
Cleanup.
This commit is contained in:
@@ -96,12 +96,6 @@ public abstract class TunerChannelSource extends ComplexSource implements ISourc
|
|||||||
*/
|
*/
|
||||||
public abstract void setListener(Listener<ComplexSamples> complexSamplesListener);
|
public abstract void setListener(Listener<ComplexSamples> complexSamplesListener);
|
||||||
|
|
||||||
/**
|
|
||||||
* Commands sub-class to process queued samples and distribute them to the consumer. This method will be invoked
|
|
||||||
* by an interval timer.
|
|
||||||
*/
|
|
||||||
// protected abstract void processSamples();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tuner channel for this tuner channel source
|
* Tuner channel for this tuner channel source
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/*******************************************************************************
|
/*
|
||||||
* sdrtrunk
|
* *****************************************************************************
|
||||||
* Copyright (C) 2014-2017 Dennis Sheirer
|
* Copyright (C) 2014-2022 Dennis Sheirer
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||||
*
|
* ****************************************************************************
|
||||||
******************************************************************************/
|
*/
|
||||||
package io.github.dsheirer.util;
|
package io.github.dsheirer.util;
|
||||||
|
|
||||||
public class StringUtils
|
public class StringUtils
|
||||||
@@ -45,8 +45,15 @@ public class StringUtils
|
|||||||
/**
|
/**
|
||||||
* Replaces any illegal filename characters in the proposed filename
|
* Replaces any illegal filename characters in the proposed filename
|
||||||
*/
|
*/
|
||||||
public static String replaceIllegalCharacters(String filename) {
|
public static String replaceIllegalCharacters(String filename)
|
||||||
for (String illegalCharacter : ILLEGAL_FILENAME_CHARACTERS) {
|
{
|
||||||
|
if(isEmpty(filename))
|
||||||
|
{
|
||||||
|
return filename;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (String illegalCharacter : ILLEGAL_FILENAME_CHARACTERS)
|
||||||
|
{
|
||||||
filename = filename.replace(illegalCharacter, "_");
|
filename = filename.replace(illegalCharacter, "_");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user