Replaced text literals by localization messages

Signed-off-by: Markus KARG <markus@headcrashing.eu>
diff --git a/media/json-binding/src/main/java/org/glassfish/jersey/jsonb/internal/JsonBindingProvider.java b/media/json-binding/src/main/java/org/glassfish/jersey/jsonb/internal/JsonBindingProvider.java
index 127589a..c8a1c7e 100644
--- a/media/json-binding/src/main/java/org/glassfish/jersey/jsonb/internal/JsonBindingProvider.java
+++ b/media/json-binding/src/main/java/org/glassfish/jersey/jsonb/internal/JsonBindingProvider.java
@@ -75,14 +75,14 @@
         if (entityStream.markSupported()) {
             entityStream.mark(1);
             if (entityStream.read() == -1) {
-                throw new NoContentException("JSON-B cannot process empty input stream");
+                throw new NoContentException(LocalizationMessages.ERROR_JSONB_EMPTYSTREAM());
             }
             entityStream.reset();
         } else {
             final PushbackInputStream buffer = new PushbackInputStream(entityStream);
             final int firstByte = buffer.read();
             if (firstByte == -1) {
-                throw new NoContentException("JSON-B cannot process empty input stream");
+                throw new NoContentException(LocalizationMessages.ERROR_JSONB_EMPTYSTREAM());
             }
             buffer.unread(firstByte);
             entityStream = buffer;
diff --git a/media/json-binding/src/main/resources/org/glassfish/jersey/jsonb/localization.properties b/media/json-binding/src/main/resources/org/glassfish/jersey/jsonb/localization.properties
index c7b5a94..4eee493 100644
--- a/media/json-binding/src/main/resources/org/glassfish/jersey/jsonb/localization.properties
+++ b/media/json-binding/src/main/resources/org/glassfish/jersey/jsonb/localization.properties
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
 #
 # This program and the accompanying materials are made available under the
 # terms of the Eclipse Public License v. 2.0, which is available at
@@ -16,3 +16,4 @@
 
 error.jsonb.serialization=Error writing JSON-B serialized object.
 error.jsonb.deserialization=Error deserializing object from entity stream.
+error.jsonb.emptystream=JSON-B cannot parse empty input stream.