Verified Owner
Top Description Constructors Methods
org.jabref.logic.layout.format

public Class NonSpaceWhitespaceRemover

extends Object
implements LayoutFormatter
Class Inheritance
All Implemented Interfaces
org.jabref.logic.layout.LayoutFormatter
Annotations
@NullMarked
Imports
org.jabref.logic.layout.LayoutFormatter, org.jspecify.annotations.NullMarked, .Nullable

Remove non-printable character formatter.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public @Nullable String
format(@Nullable String fieldEntry)

Implements org.jabref.logic.layout.LayoutFormatter.format.

Failure Mode:

Formatters should be robust in the sense that they always return some relevant string.

private static boolean
shouldKeep(char c)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NonSpaceWhitespaceRemoverback to summary
public NonSpaceWhitespaceRemover()

Method Detail

formatback to summary
public @Nullable String format(@Nullable String fieldEntry)

Implements org.jabref.logic.layout.LayoutFormatter.format.

Doc from org.jabref.logic.layout.LayoutFormatter.format.

Failure Mode:

Formatters should be robust in the sense that they always return some relevant string.

If the formatter can detect an invalid input it should return the original string otherwise it may simply return a wrong output.

Annotations
@Override
shouldKeepback to summary
private static boolean shouldKeep(char c)