@Test public void testFile2String_WithChinese() throws IOException { String fileName = System.getProperty("java.io.tmpdir") + File.separator + "MixAllTest" + System.currentTimeMillis(); File file = new File(fileName); if (file.exists()) { file.delete(); } file.createNewFile(); PrintWriter out = new PrintWriter(fileName); out.write("TestForMixAll_中文"); out.close(); String string = MixAll.file2String(fileName); assertThat(string).isEqualTo("TestForMixAll_中文"); file.delete(); }
public static String file2String(final String fileName) throws IOException { File file = new File(fileName); return file2String(file); }
MixAll { public static String file2String(final String fileName) throws IOException { File file = new File(fileName); return file2String(file); } }
MixAll { public static String file2String(final String fileName) throws IOException { File file = new File(fileName); return file2String(file); }  }
MixAll { public static String file2String(final String fileName) throws IOException { File file = new File(fileName); return file2String(file); }  static String getWSAddr(); static String getRetryTopic(final String consumerGroup); static String getReplyTopic(final String clusterName); static boolean isSysConsumerGroup(final String consumerGroup); static String getDLQTopic(final String consumerGroup); static String brokerVIPChannel(final boolean isChange, final String brokerAddr); static long getPID(); static void string2File(final String str, final String fileName); static void string2FileNotSafe(final String str, final String fileName); static String file2String(final String fileName); static String file2String(final File file); static String file2String(final URL url); static void printObjectProperties(final InternalLogger logger, final Object object); static void printObjectProperties(final InternalLogger logger, final Object object,
        final boolean onlyImportantField); static String properties2String(final Properties properties); static Properties string2Properties(final String str); static Properties object2Properties(final Object object); static void properties2Object(final Properties p, final Object object); static boolean isPropertiesEqual(final Properties p1, final Properties p2); static List<String> getLocalInetAddress(); static String getLocalhostByNetworkInterface(); static boolean compareAndIncreaseOnly(final AtomicLong target, final long value); static String humanReadableByteCount(long bytes, boolean si); }
MixAll { public static String file2String(final String fileName) throws IOException { File file = new File(fileName); return file2String(file); }  static String getWSAddr(); static String getRetryTopic(final String consumerGroup); static String getReplyTopic(final String clusterName); static boolean isSysConsumerGroup(final String consumerGroup); static String getDLQTopic(final String consumerGroup); static String brokerVIPChannel(final boolean isChange, final String brokerAddr); static long getPID(); static void string2File(final String str, final String fileName); static void string2FileNotSafe(final String str, final String fileName); static String file2String(final String fileName); static String file2String(final File file); static String file2String(final URL url); static void printObjectProperties(final InternalLogger logger, final Object object); static void printObjectProperties(final InternalLogger logger, final Object object,
        final boolean onlyImportantField); static String properties2String(final Properties properties); static Properties string2Properties(final String str); static Properties object2Properties(final Object object); static void properties2Object(final Properties p, final Object object); static boolean isPropertiesEqual(final Properties p1, final Properties p2); static List<String> getLocalInetAddress(); static String getLocalhostByNetworkInterface(); static boolean compareAndIncreaseOnly(final AtomicLong target, final long value); static String humanReadableByteCount(long bytes, boolean si); static final String ROCKETMQ_HOME_ENV; static final String ROCKETMQ_HOME_PROPERTY; static final String NAMESRV_ADDR_ENV; static final String NAMESRV_ADDR_PROPERTY; static final String MESSAGE_COMPRESS_LEVEL; static final String DEFAULT_NAMESRV_ADDR_LOOKUP; static final String WS_DOMAIN_NAME; static final String WS_DOMAIN_SUBGROUP; static final String DEFAULT_PRODUCER_GROUP; static final String DEFAULT_CONSUMER_GROUP; static final String TOOLS_CONSUMER_GROUP; static final String FILTERSRV_CONSUMER_GROUP; static final String MONITOR_CONSUMER_GROUP; static final String CLIENT_INNER_PRODUCER_GROUP; static final String SELF_TEST_PRODUCER_GROUP; static final String SELF_TEST_CONSUMER_GROUP; static final String ONS_HTTP_PROXY_GROUP; static final String CID_ONSAPI_PERMISSION_GROUP; static final String CID_ONSAPI_OWNER_GROUP; static final String CID_ONSAPI_PULL_GROUP; static final String CID_RMQ_SYS_PREFIX; static final List<String> LOCAL_INET_ADDRESS; static final String LOCALHOST; static final String DEFAULT_CHARSET; static final long MASTER_ID; static final long CURRENT_JVM_PID; static final String RETRY_GROUP_TOPIC_PREFIX; static final String DLQ_GROUP_TOPIC_PREFIX; static final String REPLY_TOPIC_POSTFIX; static final String UNIQUE_MSG_QUERY_FLAG; static final String DEFAULT_TRACE_REGION_ID; static final String CONSUME_CONTEXT_TYPE; static final String CID_SYS_RMQ_TRANS; static final String ACL_CONF_TOOLS_FILE; static final String REPLY_MESSAGE_FLAG; }